diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-03-18 16:19:11 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-03-18 16:19:11 -0700 |
commit | b6c2449b3f71041509093c537a984163cbaad8ef (patch) | |
tree | 2b9f35dcb2817bddf0c4b555e63d72feee435d7b /lib/sortBy.js | |
parent | 1035fa8ab815ec16a321a58dbb85c5f67fa22be4 (diff) | |
download | async-b6c2449b3f71041509093c537a984163cbaad8ef.tar.gz |
iterator -> iteratee in lib/
Diffstat (limited to 'lib/sortBy.js')
-rw-r--r-- | lib/sortBy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sortBy.js b/lib/sortBy.js index 4f14823..8b78221 100644 --- a/lib/sortBy.js +++ b/lib/sortBy.js @@ -5,9 +5,9 @@ import property from 'lodash/_baseProperty'; import map from './map'; -export default function sortBy (arr, iterator, cb) { +export default function sortBy (arr, iteratee, cb) { map(arr, function (x, cb) { - iterator(x, function (err, criteria) { + iteratee(x, function (err, criteria) { if (err) return cb(err); cb(null, {value: x, criteria: criteria}); }); |