src/driver.js
function getSyncMethod(model, options = {}) {
  const forceAjaxSync = options.ajaxSync;
  const hasLocalStorage = getLocalStorage(model);

  return !forceAjaxSync && hasLocalStorage ? localSync : ajaxSync;
}
function getSyncMethod(model, options = {}) {
  const forceAjaxSync = options.ajaxSync;
  const hasLocalStorage = getLocalStorage(model);

  return !forceAjaxSync && hasLocalStorage ? localSync : ajaxSync;
}
function getSyncMethod ( model , options = { } ) { const forceAjaxSync = options . ajaxSync ; const hasLocalStorage = getLocalStorage ( model ) ; return ! forceAjaxSync && hasLocalStorage ? localSync : ajaxSync ; }
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
Get the local or ajax sync call