diff options
author | Hubert Argasinski <argasinski.hubert@gmail.com> | 2017-06-23 00:21:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 00:21:33 -0400 |
commit | e9b28554fd139ae15cf53496dbfb966b13904858 (patch) | |
tree | 41cc14d34e5c528a614bfcb59a9021d6eb5922e6 /lib/concat.js | |
parent | 2f14cac2757158cf0b12fc1252733a81d7b29310 (diff) | |
download | async-e9b28554fd139ae15cf53496dbfb966b13904858.tar.gz |
preserve order, make variadic and handle falsy values in concat [fixes #1437] (#1436)
* preserve order in concat
* remove comment
* fix concatLimit linting
* handle variadic and falsy results in concatLimit [fixes #1437]
* fix tests (typos)
* PR fixes
Diffstat (limited to 'lib/concat.js')
-rw-r--r-- | lib/concat.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/concat.js b/lib/concat.js index 7edf759..b4857c9 100644 --- a/lib/concat.js +++ b/lib/concat.js @@ -1,5 +1,5 @@ -import concat from './internal/concat'; -import doParallel from './internal/doParallel'; +import doLimit from './internal/doLimit'; +import concatLimit from './concatLimit'; /** * Applies `iteratee` to each item in `coll`, concatenating the results. Returns @@ -26,4 +26,4 @@ import doParallel from './internal/doParallel'; * // files is now a list of filenames that exist in the 3 directories * }); */ -export default doParallel(concat); +export default doLimit(concatLimit, Infinity); |