diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-16 01:59:39 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-16 02:00:31 +0100 |
commit | bd65bb67e25a79b019d745b7262b2008ce2adb15 (patch) | |
tree | 89e1b032103a63737f1a703e6a943832ef261704 /node_modules/lodash/invokeMap.js | |
parent | f91466595b651721690133f58ab37f977539e95b (diff) | |
download | wallet-core-bd65bb67e25a79b019d745b7262b2008ce2adb15.tar.xz |
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'node_modules/lodash/invokeMap.js')
-rw-r--r-- | node_modules/lodash/invokeMap.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/node_modules/lodash/invokeMap.js b/node_modules/lodash/invokeMap.js index f3302db86..8da5126c6 100644 --- a/node_modules/lodash/invokeMap.js +++ b/node_modules/lodash/invokeMap.js @@ -2,8 +2,7 @@ var apply = require('./_apply'), baseEach = require('./_baseEach'), baseInvoke = require('./_baseInvoke'), baseRest = require('./_baseRest'), - isArrayLike = require('./isArrayLike'), - isKey = require('./_isKey'); + isArrayLike = require('./isArrayLike'); /** * Invokes the method at `path` of each element in `collection`, returning @@ -31,12 +30,10 @@ var apply = require('./_apply'), var invokeMap = baseRest(function(collection, path, args) { var index = -1, isFunc = typeof path == 'function', - isProp = isKey(path), result = isArrayLike(collection) ? Array(collection.length) : []; baseEach(collection, function(value) { - var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined); - result[++index] = func ? apply(func, value, args) : baseInvoke(value, path, args); + result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); }); return result; }); |