Ensure _.pick paths aren't interpolated twice. [closes #3952]

This commit is contained in:
John-David Dalton
2018-09-17 22:37:59 -07:00
parent e0cbb4c8e6
commit 39a7eae40d

View File

@@ -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]);
}); });
} }