summaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/transform.js b/lib/transform.js
index ef254a1..ac2631f 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -1,4 +1,3 @@
-import isArray from 'lodash/isArray';
import noop from 'lodash/noop';
import eachOf from './eachOf';
@@ -51,7 +50,7 @@ export default function transform (coll, accumulator, iteratee, callback) {
if (arguments.length <= 3) {
callback = iteratee;
iteratee = accumulator;
- accumulator = isArray(coll) ? [] : {};
+ accumulator = Array.isArray(coll) ? [] : {};
}
callback = once(callback || noop);
var _iteratee = wrapAsync(iteratee);