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

Function _map

deps/async.js:33–42  ·  view source on GitHub ↗
(arr, iterator)

Source from the content-addressed store, hash-verified

31 };
32
33 var _map = function (arr, iterator) {
34 if (arr.map) {
35 return arr.map(iterator);
36 }
37 var results = [];
38 _forEach(arr, function (x, i, a) {
39 results.push(iterator(x, i, a));
40 });
41 return results;
42 };
43
44 var _reduce = function (arr, iterator, memo) {
45 if (arr.reduce) {

Callers 4

_asyncMapFunction · 0.70
async.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…