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

Function _reduce

examples/browser/nodeunit.js:542–550  ·  view source on GitHub ↗
(arr, iterator, memo)

Source from the content-addressed store, hash-verified

540 };
541
542 var _reduce = function (arr, iterator, memo) {
543 if (arr.reduce) {
544 return arr.reduce(iterator, memo);
545 }
546 _forEach(arr, function (x, i, a) {
547 memo = iterator(memo, x, i, a);
548 });
549 return memo;
550 };
551
552 var _keys = function (obj) {
553 if (Object.keys) {

Callers 1

readyFunction · 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…