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

Function ready

examples/browser/nodeunit.js:865–869  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

863 };
864 var requires = task.slice(0, Math.abs(task.length - 1)) || [];
865 var ready = function () {
866 return _reduce(requires, function (a, x) {
867 return (a && _indexOf(completed, x) !== -1);
868 }, true);
869 };
870 if (ready()) {
871 task[task.length - 1](taskCallback);
872 }

Callers 2

nodeunit.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…