MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / _reduce

Function _reduce

public/javascripts/async.js:104–109  ·  view source on GitHub ↗
(arr, iterator, memo)

Source from the content-addressed store, hash-verified

102 }
103
104 function _reduce(arr, iterator, memo) {
105 _arrayEach(arr, function (x, i, a) {
106 memo = iterator(memo, x, i, a);
107 });
108 return memo;
109 }
110
111 function _forEachOf(object, iterator) {
112 _arrayEach(_keys(object), function (key) {

Callers 1

readyFunction · 0.85

Calls 2

_arrayEachFunction · 0.85
iteratorFunction · 0.70

Tested by

no test coverage detected