MCPcopy
hub / github.com/moxiecode/plupload / each

Function each

tests/js/require.js:55–64  ·  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

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

Callers 8

getGlobalFunction · 0.70
removeScriptFunction · 0.70
onErrorFunction · 0.70
takeGlobalQueueFunction · 0.70
breakCycleFunction · 0.70
checkLoadedFunction · 0.70
newContextFunction · 0.70
require.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected