'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var scrollTo = _interopDefault(require('./scrollTo'));

/**
 * 滚动到页面顶部
 * @param {Object} options
 *
 * scrollToTop();
 * scrollToTop({ animation: false });
 * scrollToTop({ element: document.querySelector('#container') });
 */
function scrollToTop(options) {
  return scrollTo(0, options);
}

module.exports = scrollToTop;
