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

Function _map

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

Source from the content-addressed store, hash-verified

529 };
530
531 var _map = function (arr, iterator) {
532 if (arr.map) {
533 return arr.map(iterator);
534 }
535 var results = [];
536 _forEach(arr, function (x, i, a) {
537 results.push(iterator(x, i, a));
538 });
539 return results;
540 };
541
542 var _reduce = function (arr, iterator, memo) {
543 if (arr.reduce) {

Callers 4

_asyncMapFunction · 0.70
nodeunit.jsFile · 0.70
_filterFunction · 0.70
_rejectFunction · 0.70

Calls 1

_forEachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…