From bd65bb67e25a79b019d745b7262b2008ce2adb15 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 16 Nov 2016 01:59:39 +0100 Subject: incrementally verify denoms The denominations are not stored in a separate object store. --- node_modules/lodash/_basePickBy.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'node_modules/lodash/_basePickBy.js') diff --git a/node_modules/lodash/_basePickBy.js b/node_modules/lodash/_basePickBy.js index dc9b342e8..6ada1f36a 100644 --- a/node_modules/lodash/_basePickBy.js +++ b/node_modules/lodash/_basePickBy.js @@ -1,25 +1,26 @@ -var baseAssignValue = require('./_baseAssignValue'); +var baseGet = require('./_baseGet'), + baseSet = require('./_baseSet'); /** * The base implementation of `_.pickBy` without support for iteratee shorthands. * * @private * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick from. + * @param {string[]} paths The property paths to pick. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ -function basePickBy(object, props, predicate) { +function basePickBy(object, paths, predicate) { var index = -1, - length = props.length, + length = paths.length, result = {}; while (++index < length) { - var key = props[index], - value = object[key]; + var path = paths[index], + value = baseGet(object, path); - if (predicate(value, key)) { - baseAssignValue(result, key, value); + if (predicate(value, path)) { + baseSet(result, path, value); } } return result; -- cgit v1.2.3