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