diff options
Diffstat (limited to 'lib/internal/filter.js')
-rw-r--r-- | lib/internal/filter.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/internal/filter.js b/lib/internal/filter.js index 5af788c..032bd33 100644 --- a/lib/internal/filter.js +++ b/lib/internal/filter.js @@ -3,6 +3,8 @@ import isArrayLike from 'lodash/isArrayLike'; import property from 'lodash/_baseProperty'; import noop from 'lodash/noop'; +import wrapAsync from './wrapAsync'; + function filterArray(eachfn, arr, iteratee, callback) { var truthValues = new Array(arr.length); eachfn(arr, function (x, index, callback) { @@ -46,5 +48,5 @@ function filterGeneric(eachfn, coll, iteratee, callback) { export default function _filter(eachfn, coll, iteratee, callback) { var filter = isArrayLike(coll) ? filterArray : filterGeneric; - filter(eachfn, coll, iteratee, callback || noop); + filter(eachfn, coll, wrapAsync(iteratee), callback || noop); } |