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/pick.js | |
parent | f91466595b651721690133f58ab37f977539e95b (diff) |
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'node_modules/lodash/pick.js')
-rw-r--r-- | node_modules/lodash/pick.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/node_modules/lodash/pick.js b/node_modules/lodash/pick.js index a631b1519..3160199f0 100644 --- a/node_modules/lodash/pick.js +++ b/node_modules/lodash/pick.js @@ -1,7 +1,5 @@ -var arrayMap = require('./_arrayMap'), - basePick = require('./_basePick'), - flatRest = require('./_flatRest'), - toKey = require('./_toKey'); +var basePick = require('./_basePick'), + flatRest = require('./_flatRest'); /** * Creates an object composed of the picked `object` properties. @@ -11,7 +9,7 @@ var arrayMap = require('./_arrayMap'), * @memberOf _ * @category Object * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to pick. + * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new object. * @example * @@ -20,8 +18,8 @@ var arrayMap = require('./_arrayMap'), * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ -var pick = flatRest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(props, toKey)); +var pick = flatRest(function(object, paths) { + return object == null ? {} : basePick(object, paths); }); module.exports = pick; |