code: function getSyncMethod(model, options = {}) {
    const forceAjaxSync = options.ajaxSync;
    const hasLocalStorage = getLocalStorage(model);
  
    return !forceAjaxSync && hasLocalStorage ? localSync : ajaxSync;
  }
docs: Get the local or ajax sync call
  @param {Model} model - Model to sync
  @param {object} options - Options to pass, takes ajaxSync
  @returns {function} The sync method that will be called