mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Bump to v4.17.2.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user