diff options
author | Hubert Argasinski <argasinski.hubert@gmail.com> | 2017-06-21 23:07:18 -0400 |
---|---|---|
committer | Hubert Argasinski <argasinski.hubert@gmail.com> | 2017-06-21 23:07:18 -0400 |
commit | a0ffde83e42ae407514faaa8e754912d91df713f (patch) | |
tree | 41cc14d34e5c528a614bfcb59a9021d6eb5922e6 /lib/concatLimit.js | |
parent | 39b20e6da268b2b737df7b068d32620b59011474 (diff) | |
download | async-concat-order.tar.gz |
PR fixesconcat-order
Diffstat (limited to 'lib/concatLimit.js')
-rw-r--r-- | lib/concatLimit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/concatLimit.js b/lib/concatLimit.js index 8b8f5d8..4df03ea 100644 --- a/lib/concatLimit.js +++ b/lib/concatLimit.js @@ -3,6 +3,8 @@ import wrapAsync from './internal/wrapAsync'; import slice from './internal/slice'; import mapLimit from './mapLimit'; +var _concat = Array.prototype.concat; + /** * The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time. * @@ -31,7 +33,6 @@ export default function(coll, limit, iteratee, callback) { }); }, function(err, mapResults) { var result = []; - var _concat = Array.prototype.concat; for (var i = 0; i < mapResults.length; i++) { if (mapResults[i]) { result = _concat.apply(result, mapResults[i]); |