summaryrefslogtreecommitdiff
path: root/lib/auto.js
diff options
context:
space:
mode:
authorFederico Brigante <github@bfred.it>2018-04-19 17:41:21 +0700
committerFederico Brigante <github@bfred.it>2018-04-19 18:33:23 +0700
commitdbed9147efc5b48db5e58b274f6b5e4a718c85c3 (patch)
treeb153e527332dc84aabeaacd5e0fed93ececef38c /lib/auto.js
parent94f2b17be05a2f00a0562e91f77e4eb214da61b4 (diff)
downloadasync-dbed9147efc5b48db5e58b274f6b5e4a718c85c3.tar.gz
Drop isArray
Diffstat (limited to 'lib/auto.js')
-rw-r--r--lib/auto.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/auto.js b/lib/auto.js
index 2a6f5c4..8dbc56c 100644
--- a/lib/auto.js
+++ b/lib/auto.js
@@ -1,5 +1,4 @@
import indexOf from 'lodash/_baseIndexOf';
-import isArray from 'lodash/isArray';
import okeys from 'lodash/keys';
import noop from 'lodash/noop';
@@ -118,7 +117,7 @@ export default function (tasks, concurrency, callback) {
var uncheckedDependencies = {};
forOwn(tasks, function (task, key) {
- if (!isArray(task)) {
+ if (!Array.isArray(task)) {
// no dependencies
enqueueTask(key, [task]);
readyToCheck.push(key);
@@ -247,7 +246,7 @@ export default function (tasks, concurrency, callback) {
function getDependents(taskName) {
var result = [];
forOwn(tasks, function (task, key) {
- if (isArray(task) && indexOf(task, taskName, 0) >= 0) {
+ if (Array.isArray(task) && indexOf(task, taskName, 0) >= 0) {
result.push(key);
}
});