12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- var arrayFilter = require('./_arrayFilter'),
- baseFilter = require('./_baseFilter'),
- baseIteratee = require('./_baseIteratee'),
- isArray = require('./isArray'),
- negate = require('./negate');
-
-
- function reject(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, negate(baseIteratee(predicate, 3)));
- }
-
- module.exports = reject;
|