Newer
Older
alert / js / node_modules / dayjs / esm / plugin / pluralGetSet / index.js
@Réz István Réz István on 18 Nov 2021 304 bytes first commit
export default (function (o, c) {
  var proto = c.prototype;
  var pluralAliases = ['milliseconds', 'seconds', 'minutes', 'hours', 'days', 'weeks', 'isoWeeks', 'months', 'quarters', 'years', 'dates'];
  pluralAliases.forEach(function (alias) {
    proto[alias] = proto[alias.replace(/s$/, '')];
  });
});