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

Function ready

deps/async.js:372–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370 };
371 var requires = task.slice(0, Math.abs(task.length - 1)) || [];
372 var ready = function () {
373 return _reduce(requires, function (a, x) {
374 return (a && _indexOf(completed, x) !== -1);
375 }, true);
376 };
377 if (ready()) {
378 task[task.length - 1](taskCallback);
379 }

Callers 2

async.jsFile · 0.70
listenerFunction · 0.70

Calls 2

_reduceFunction · 0.70
_indexOfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…