TraceabilityAPP/node_modules/dayjs/esm/plugin/pluralGetSet/index.js

7 lines
304 B
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
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$/, '')];
});
});