diff options
Diffstat (limited to 'node_modules/lodash/_basePickBy.js')
-rw-r--r-- | node_modules/lodash/_basePickBy.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/node_modules/lodash/_basePickBy.js b/node_modules/lodash/_basePickBy.js index 6ada1f36a..85be68c84 100644 --- a/node_modules/lodash/_basePickBy.js +++ b/node_modules/lodash/_basePickBy.js @@ -1,5 +1,6 @@ var baseGet = require('./_baseGet'), - baseSet = require('./_baseSet'); + baseSet = require('./_baseSet'), + castPath = require('./_castPath'); /** * The base implementation of `_.pickBy` without support for iteratee shorthands. @@ -20,7 +21,7 @@ function basePickBy(object, paths, predicate) { value = baseGet(object, path); if (predicate(value, path)) { - baseSet(result, path, value); + baseSet(result, castPath(path, object), value); } } return result; |