MCPcopy
hub / github.com/caolan/async / reject

Function reject

lib/internal/reject.js:3–9  ·  view source on GitHub ↗
(eachfn, arr, iteratee, callback)

Source from the content-addressed store, hash-verified

1import filter from './filter';
2
3export default function reject(eachfn, arr, iteratee, callback) {
4 filter(eachfn, arr, function(value, cb) {
5 iteratee(value, function(err, v) {
6 cb(err, !v);
7 });
8 }, callback);
9}

Callers 1

promisifiedFunction · 0.85

Calls 1

iterateeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…