Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 304B

1234567
  1. export default (function (o, c) {
  2. var proto = c.prototype;
  3. var pluralAliases = ['milliseconds', 'seconds', 'minutes', 'hours', 'days', 'weeks', 'isoWeeks', 'months', 'quarters', 'years', 'dates'];
  4. pluralAliases.forEach(function (alias) {
  5. proto[alias] = proto[alias.replace(/s$/, '')];
  6. });
  7. });