MCPcopy Index your code
hub / github.com/caolan/nodeunit / _forEach

Function _forEach

examples/browser/nodeunit.js:522–529  ·  view source on GitHub ↗
(arr, iterator)

Source from the content-addressed store, hash-verified

520 //// cross-browser compatiblity functions ////
521
522 var _forEach = function (arr, iterator) {
523 if (arr.forEach) {
524 return arr.forEach(iterator);
525 }
526 for (var i = 0; i < arr.length; i += 1) {
527 iterator(arr[i], i, arr);
528 }
529 };
530
531 var _map = function (arr, iterator) {
532 if (arr.map) {

Callers 5

_mapFunction · 0.70
_reduceFunction · 0.70
nodeunit.jsFile · 0.70
taskCompleteFunction · 0.70
_console_fnFunction · 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…