summaryrefslogtreecommitdiff
path: root/build/es/internal/reject.js
blob: 8b1bf0d5ca824d8604a297a0a54f18e9e09d4365 (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';

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);
}