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

Function iterate

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

Source from the content-addressed store, hash-verified

613 }
614 var completed = 0;
615 var iterate = function () {
616 iterator(arr[completed], function (err) {
617 if (err) {
618 callback(err);
619 callback = function () {};
620 }
621 else {
622 completed += 1;
623 if (completed === arr.length) {
624 callback();
625 }
626 else {
627 iterate();
628 }
629 }
630 });
631 };
632 iterate();
633 };
634

Callers 1

nodeunit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…