diff options
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]); |