12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import arrayFilter from './_arrayFilter.js';
- import baseFilter from './_baseFilter.js';
- import baseIteratee from './_baseIteratee.js';
- import isArray from './isArray.js';
- import negate from './negate.js';
- function reject(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, negate(baseIteratee(predicate, 3)));
- }
- export default reject;
|