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

Function iteratee

public/javascripts/async.js:447–456  ·  view source on GitHub ↗
(x, _, callback)

Source from the content-addressed store, hash-verified

445 if (cb) cb(getResult(false, void 0));
446 }
447 function iteratee(x, _, callback) {
448 if (!cb) return callback();
449 iterator(x, function (v) {
450 if (cb && check(v)) {
451 cb(getResult(true, x));
452 cb = iterator = false;
453 }
454 callback();
455 });
456 }
457 if (arguments.length > 3) {
458 eachfn(arr, limit, iteratee, done);
459 } else {

Callers 6

underscore.jsFile · 0.85
iteratorFunction · 0.85
groupFunction · 0.85
underscore.jsFile · 0.85
iteratorFunction · 0.85
groupFunction · 0.85

Calls 4

callbackFunction · 0.85
iteratorFunction · 0.70
checkFunction · 0.70
cbFunction · 0.70

Tested by

no test coverage detected