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

12345678910
  1. export default (function (o, c, d) {
  2. c.prototype.isBetween = function (a, b, u, i) {
  3. var dA = d(a);
  4. var dB = d(b);
  5. i = i || '()';
  6. var dAi = i[0] === '(';
  7. var dBi = i[1] === ')';
  8. return (dAi ? this.isAfter(dA, u) : !this.isBefore(dA, u)) && (dBi ? this.isBefore(dB, u) : !this.isAfter(dB, u)) || (dAi ? this.isBefore(dA, u) : !this.isAfter(dA, u)) && (dBi ? this.isAfter(dB, u) : !this.isBefore(dB, u));
  9. };
  10. });