Ensure _.pick supports path arrays. [closes #2809]

This commit is contained in:
John-David Dalton
2016-11-14 01:06:35 -08:00
parent 102c5f00d7
commit ce093845e1
2 changed files with 11 additions and 2 deletions

View File

@@ -13529,7 +13529,7 @@
* // => { 'a': 1, 'c': 3 }
*/
var pick = flatRest(function(object, paths) {
return object == null ? {} : basePick(object, arrayMap(paths, toKey));
return object == null ? {} : basePick(object, paths);
});
/**