dist/glide.esm.js
function mergeOptions(defaults, settings) {
  var options = _extends({}, defaults, settings);

  // `Object.assign` do not deeply merge objects, so we
  // have to do it manually for every nested object
  // in options. Although it does not look smart,
  // it's smaller and faster than some fancy
  // merging deep-merge algorithm script.
  if (settings.hasOwnProperty('classes')) {
    options.classes = _extends({}, defaults.classes, settings.classes);

    if (settings.classes.hasOwnProperty('direction')) {
      options.classes.direction = _extends({}, defaults.classes.direction, settings.classes.direction);
    }
  }

  if (settings.hasOwnProperty('breakpoints')) {
    options.breakpoints = _extends({}, defaults.breakpoints, settings.breakpoints);
  }

  return options;
}
function mergeOptions(defaults, settings) {
  var options = _extends({}, defaults, settings);

  // `Object.assign` do not deeply merge objects, so we
  // have to do it manually for every nested object
  // in options. Although it does not look smart,
  // it's smaller and faster than some fancy
  // merging deep-merge algorithm script.
  if (settings.hasOwnProperty('classes')) {
    options.classes = _extends({}, defaults.classes, settings.classes);

    if (settings.classes.hasOwnProperty('direction')) {
      options.classes.direction = _extends({}, defaults.classes.direction, settings.classes.direction);
    }
  }

  if (settings.hasOwnProperty('breakpoints')) {
    options.breakpoints = _extends({}, defaults.breakpoints, settings.breakpoints);
  }

  return options;
}
function mergeOptions ( defaults , settings ) { var options = _extends ( { } , defaults , settings ) ; // `Object.assign` do not deeply merge objects, so we // have to do it manually for every nested object // in options. Although it does not look smart, // it's smaller and faster than some fancy // merging deep-merge algorithm script. if ( settings . hasOwnProperty ( 'classes' ) ) { options . classes = _extends ( { } , defaults . classes , settings . classes ) ; if ( settings . classes . hasOwnProperty ( 'direction' ) ) { options . classes . direction = _extends ( { } , defaults . classes . direction , settings . classes . direction ) ; } } if ( settings . hasOwnProperty ( 'breakpoints' ) ) { options . breakpoints = _extends ( { } , defaults . breakpoints , settings . breakpoints ) ; } return options ; }
Merges passed settings object with default options.

@param  {Object} defaults
@param  {Object} settings
@return {Object}
Merges passed settings object with default options .