diff options
author | Andrés Aldana <andres.aldana.martinez@gmail.com> | 2016-07-02 17:11:11 -0500 |
---|---|---|
committer | Andrés Aldana <andres.aldana.martinez@gmail.com> | 2016-07-02 17:11:11 -0500 |
commit | d9315989c1ade01c3c8825401b167fbc5e5202ab (patch) | |
tree | ef14f8e6f73244f65b16ce92bfeeb8d7d0098eba | |
parent | aaaa531a9bd0356ffde5bcb52da069c85e851ec5 (diff) | |
download | async-d9315989c1ade01c3c8825401b167fbc5e5202ab.tar.gz |
Replace forIn for forOwn
-rw-r--r-- | lib/reflectAll.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reflectAll.js b/lib/reflectAll.js index d444752..2a8583c 100644 --- a/lib/reflectAll.js +++ b/lib/reflectAll.js @@ -1,7 +1,7 @@ import reflect from './reflect'; import isArray from 'lodash/isArray'; import map from 'lodash/map'; -import forIn from 'lodash/forIn'; +import forOwn from 'lodash/forOwn'; /** * A helper function that wraps an array or an object of functions with reflect. @@ -75,7 +75,7 @@ export default function reflectAll(tasks) { results = map(tasks, reflect); } else { results = {}; - forIn(tasks, function(task, key) { + forOwn(tasks, function(task, key) { results[key] = reflect.call(this, task); }); } |