mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.17.1.
This commit is contained in:
4
pick.js
4
pick.js
@@ -1,4 +1,4 @@
|
||||
define(['./_arrayMap', './_basePick', './_flatRest', './_toKey'], function(arrayMap, basePick, flatRest, toKey) {
|
||||
define(['./_basePick', './_flatRest'], function(basePick, flatRest) {
|
||||
|
||||
/**
|
||||
* Creates an object composed of the picked `object` properties.
|
||||
@@ -18,7 +18,7 @@ define(['./_arrayMap', './_basePick', './_flatRest', './_toKey'], function(array
|
||||
* // => { 'a': 1, 'c': 3 }
|
||||
*/
|
||||
var pick = flatRest(function(object, paths) {
|
||||
return object == null ? {} : basePick(object, arrayMap(paths, toKey));
|
||||
return object == null ? {} : basePick(object, paths);
|
||||
});
|
||||
|
||||
return pick;
|
||||
|
||||
Reference in New Issue
Block a user