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.

123456789101112
  1. export default function(a, b) {
  2. function compose(x, y) {
  3. return x = a(x, y), b(x[0], x[1]);
  4. }
  5. if (a.invert && b.invert) compose.invert = function(x, y) {
  6. return x = b.invert(x, y), x && a.invert(x[0], x[1]);
  7. };
  8. return compose;
  9. }