Node-Red configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

compose.js 250B

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. }