callMoment.js 308 Bytes
Newer Older
liang ce committed
1 2 3 4 5 6 7 8
// https://github.com/moment/moment/issues/3650
export default function callMoment(moment) {
  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }

  return (moment["default"] || moment).apply(undefined, args);
}