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 281B

123456789
  1. export default (function (o, c, d) {
  2. var proto = c.prototype;
  3. proto.isYesterday = function () {
  4. var comparisonTemplate = 'YYYY-MM-DD';
  5. var yesterday = d().subtract(1, 'day');
  6. return this.format(comparisonTemplate) === yesterday.format(comparisonTemplate);
  7. };
  8. });