diff options
Diffstat (limited to 'build/es/internal/filter.js')
-rw-r--r-- | build/es/internal/filter.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/build/es/internal/filter.js b/build/es/internal/filter.js deleted file mode 100644 index 62932a0..0000000 --- a/build/es/internal/filter.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -import arrayMap from 'lodash-es/_arrayMap'; -import property from 'lodash-es/_baseProperty'; - -export default function _filter(eachfn, arr, iterator, callback) { - var results = []; - eachfn(arr, function (x, index, callback) { - iterator(x, function (v) { - if (v) { - results.push({index: index, value: x}); - } - callback(); - }); - }, function () { - callback(arrayMap(results.sort(function (a, b) { - return a.index - b.index; - }), property('value'))); - }); -} |