MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / _map

Function _map

public/javascripts/async.js:89–98  ·  view source on GitHub ↗
(arr, iterator)

Source from the content-addressed store, hash-verified

87 }
88
89 function _map(arr, iterator) {
90 var index = -1,
91 length = arr.length,
92 result = Array(length);
93
94 while (++index < length) {
95 result[index] = iterator(arr[index], index, arr);
96 }
97 return result;
98 }
99
100 function _range(count) {
101 return _map(Array(count), function (v, i) { return i; });

Callers 4

_rangeFunction · 0.85
async.jsFile · 0.85
_filterFunction · 0.85
_queueFunction · 0.85

Calls 1

iteratorFunction · 0.70

Tested by

no test coverage detected