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

Function _reject

examples/browser/nodeunit.js:720–739  ·  view source on GitHub ↗
(eachfn, arr, iterator, callback)

Source from the content-addressed store, hash-verified

718 async.selectSeries = async.filterSeries;
719
720 var _reject = function (eachfn, arr, iterator, callback) {
721 var results = [];
722 arr = _map(arr, function (x, i) {
723 return {index: i, value: x};
724 });
725 eachfn(arr, function (x, callback) {
726 iterator(x.value, function (v) {
727 if (!v) {
728 results.push(x);
729 }
730 callback();
731 });
732 }, function (err) {
733 callback(_map(results.sort(function (a, b) {
734 return a.index - b.index;
735 }), function (x) {
736 return x.value;
737 }));
738 });
739 };
740 async.reject = doParallel(_reject);
741 async.rejectSeries = doSeries(_reject);
742

Callers

nothing calls this directly

Calls 1

_mapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…