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

Function invokeArrayArg

docs/app/js/sanddance-app.js:92509–92515  ·  view source on GitHub ↗

* if the argument is an array, we want to execute the fn on each entry * if it aint an array we don't want to do a thing. * this is used by all the methods that accept a single and array argument. * @param {*|Array} arg * @param {String} fn * @param {Object} [context] * @returns {Boolean}

(arg, fn, context)

Source from the content-addressed store, hash-verified

92507 * @param {Object} [context]
92508 * @returns {Boolean}
92509 */ function invokeArrayArg(arg, fn, context) {
92510 if (Array.isArray(arg)) {
92511 each(arg, context[fn], context);
92512 return true;
92513 }
92514 return false;
92515 }
92516 /**
92517 * walk objects and arrays
92518 * @param {Object} obj

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

eachFunction · 0.70

Tested by

no test coverage detected