diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-07-03 18:46:11 -0400 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-07-03 18:46:11 -0400 |
commit | a823d56feb09f52bf29ef91cfafa0e45af3b2a74 (patch) | |
tree | fd0a3fc14735bb261fada989ca764d78462126aa /lib | |
parent | 5d66b2abcf3e68da1f8d397d44a246f7c562a3da (diff) | |
download | async-lodash-use.tar.gz |
Avoid including lodash iteratee in builds (saves 60kb :feelsgood:)lodash-use
Diffstat (limited to 'lib')
-rw-r--r-- | lib/auto.js | 2 | ||||
-rw-r--r-- | lib/autoInject.js | 2 | ||||
-rw-r--r-- | lib/race.js | 4 | ||||
-rw-r--r-- | lib/reflectAll.js | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/auto.js b/lib/auto.js index af78516..d200c3a 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -1,5 +1,5 @@ import arrayEach from 'lodash/_arrayEach'; -import forOwn from 'lodash/forOwn'; +import forOwn from 'lodash/_baseForOwn'; import indexOf from 'lodash/_baseIndexOf'; import isArray from 'lodash/isArray'; import okeys from 'lodash/keys'; diff --git a/lib/autoInject.js b/lib/autoInject.js index 31bd622..1af1a32 100644 --- a/lib/autoInject.js +++ b/lib/autoInject.js @@ -1,5 +1,5 @@ import auto from './auto'; -import forOwn from 'lodash/forOwn'; +import forOwn from 'lodash/_baseForOwn'; import arrayMap from 'lodash/_arrayMap'; import clone from 'lodash/_copyArray'; import isArray from 'lodash/isArray'; diff --git a/lib/race.js b/lib/race.js index 893e860..55d37ee 100644 --- a/lib/race.js +++ b/lib/race.js @@ -1,5 +1,5 @@ import isArray from 'lodash/isArray'; -import each from 'lodash/each'; +import arrayEach from 'lodash/_arrayEach'; import noop from 'lodash/noop'; import once from './internal/once'; @@ -44,7 +44,7 @@ export default function race(tasks, callback) { callback = once(callback || noop); if (!isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions')); if (!tasks.length) return callback(); - each(tasks, function (task) { + arrayEach(tasks, function (task) { task(callback); }); } diff --git a/lib/reflectAll.js b/lib/reflectAll.js index edfed49..dbeba8d 100644 --- a/lib/reflectAll.js +++ b/lib/reflectAll.js @@ -1,7 +1,7 @@ import reflect from './reflect'; import isArray from 'lodash/isArray'; import _arrayMap from 'lodash/_arrayMap'; -import forOwn from 'lodash/forOwn'; +import forOwn from 'lodash/_baseForOwn'; /** * A helper function that wraps an array or an object of functions with reflect. |