Skip to content

Commit

Permalink
Ensure _.pick paths aren't interpolated twice. [closes #3952]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 18, 2018
1 parent e0cbb4c commit 39a7eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -3745,7 +3745,7 @@
*/
function basePick(object, paths) {
return basePickBy(object, paths, function(value, path) {
return hasIn(object, path);
return hasIn(object, [path]);
});
}

Expand Down

0 comments on commit 39a7eae

Please sign in to comment.