MCPcopy Create free account
hub / github.com/WebReflection/neverland / augmentor$1

Function augmentor$1

index.js:574–582  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

572 };
573
574 var augmentor$1 = function augmentor$1(fn) {
575 var handler = null;
576 var hook = augmentor(fn);
577 return function () {
578 var node = hook.apply(this, arguments);
579 if (hasEffect(hook)) observer(node, handler || (handler = dropEffect.bind(null, hook)));
580 return node;
581 };
582 };
583
584 var isArray = Array.isArray;
585 var _ref = [],

Callers 1

createHookFunction · 0.70

Calls 2

augmentorFunction · 0.70
observerFunction · 0.70

Tested by

no test coverage detected