diff options
Diffstat (limited to 'lib/each.js')
-rw-r--r-- | lib/each.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/each.js b/lib/each.js index dc8c501..5bf6bd4 100644 --- a/lib/each.js +++ b/lib/each.js @@ -1,5 +1,5 @@ -import eachLimit from './eachLimit'; -import doLimit from './internal/doLimit'; +import eachOf from './eachOf'; +import withoutIndex from './internal/withoutIndex'; /** * Applies the function `iteratee` to each item in `coll`, in parallel. @@ -60,4 +60,6 @@ import doLimit from './internal/doLimit'; * } * }); */ -export default doLimit(eachLimit, Infinity); +export default function eachLimit(coll, iteratee, callback) { + eachOf(coll, withoutIndex(iteratee), callback); +} |