mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Ensure _.pick paths aren't interpolated twice. [closes #3952]
This commit is contained in:
@@ -3745,7 +3745,7 @@
|
|||||||
*/
|
*/
|
||||||
function basePick(object, paths) {
|
function basePick(object, paths) {
|
||||||
return basePickBy(object, paths, function(value, path) {
|
return basePickBy(object, paths, function(value, path) {
|
||||||
return hasIn(object, path);
|
return hasIn(object, [path]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user