MCPcopy Create free account
hub / github.com/microsoft/SandDance / appendFunction

Function appendFunction

docs/app/js/sanddance-app.js:23145–23156  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

23143 * parent.
23144 */ parcelHelpers.export(exports, "appendFunction", ()=>appendFunction);
23145function appendFunction(parent) {
23146 var functions = [];
23147 for(var _i1 = 1; _i1 < arguments.length; _i1++)functions[_i1 - 1] = arguments[_i1];
23148 if (functions.length < 2) return functions[0];
23149 return function() {
23150 var args = [];
23151 for(var _i = 0; _i < arguments.length; _i++)args[_i] = arguments[_i];
23152 functions.forEach(function(f) {
23153 return f && f.apply(parent, args);
23154 });
23155 };
23156}
23157
23158},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"jjIft":[function(require,module,exports) {
23159var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected