summaryrefslogtreecommitdiff
path: root/lib/internal
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2017-03-27 12:54:04 -0700
committerAlexander Early <alexander.early@gmail.com>2017-03-27 12:54:04 -0700
commit57b88774c5ed515ead36fb84f81550f7ff807001 (patch)
tree12eada8010f96d2aff27a75ba53e834b83eaec18 /lib/internal
parent700aa23851833ac9baf02f6c4fda72c00eeb224c (diff)
downloadasync-57b88774c5ed515ead36fb84f81550f7ff807001.tar.gz
fix small issues from PR
Diffstat (limited to 'lib/internal')
-rw-r--r--lib/internal/applyEach.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/internal/applyEach.js b/lib/internal/applyEach.js
index f611def..285a6a2 100644
--- a/lib/internal/applyEach.js
+++ b/lib/internal/applyEach.js
@@ -1,4 +1,3 @@
-import arrayMap from 'lodash/_arrayMap'
import rest from './rest';
import initialParams from './initialParams';
import wrapAsync from './wrapAsync';
@@ -7,8 +6,8 @@ export default function applyEach(eachfn) {
return rest(function(fns, args) {
var go = initialParams(function(args, callback) {
var that = this;
- return eachfn(arrayMap(fns, wrapAsync), function (fn, cb) {
- fn.apply(that, args.concat(cb));
+ return eachfn(fns, function (fn, cb) {
+ wrapAsync(fn).apply(that, args.concat(cb));
}, callback);
});
if (args.length) {