MCPcopy
hub / github.com/nbubna/store / each

Function each

libs/requirejs.js:53–62  ·  view source on GitHub ↗

* Helper function for iterating over an array. If the func returns * a true value, it will break out of the loop.

(ary, func)

Source from the content-addressed store, hash-verified

51 * a true value, it will break out of the loop.
52 */
53 function each(ary, func) {
54 if (ary) {
55 var i;
56 for (i = 0; i < ary.length; i += 1) {
57 if (ary[i] && func(ary[i], i, ary)) {
58 break;
59 }
60 }
61 }
62 }
63
64 /**
65 * Helper function for iterating over an array backwards. If the func

Callers 7

getGlobalFunction · 0.70
removeScriptFunction · 0.70
onErrorFunction · 0.70
breakCycleFunction · 0.70
checkLoadedFunction · 0.70
newContextFunction · 0.70
requirejs.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…