summaryrefslogtreecommitdiff
path: root/lib/internal/reject.js
blob: b15fab171910ab0f5d9e89dc33c952d75513349d (plain)
1
2
3
4
5
6
7
8
9
import filter from './filter';

export default function reject(eachfn, arr, iterator, callback) {
    filter(eachfn, arr, function(value, cb) {
        iterator(value, function(v) {
            cb(!v);
        });
    }, callback);
}