Bump to v4.17.1.

This commit is contained in:
John-David Dalton
2016-11-14 21:01:42 -08:00
parent 9849321273
commit 5585b3ae22
21 changed files with 172 additions and 168 deletions

View File

@@ -1,7 +1,5 @@
var arrayMap = require('./_arrayMap'),
basePick = require('./_basePick'),
flatRest = require('./_flatRest'),
toKey = require('./_toKey');
var basePick = require('./_basePick'),
flatRest = require('./_flatRest');
/**
* Creates an object composed of the picked `object` properties.
@@ -21,7 +19,7 @@ var arrayMap = require('./_arrayMap'),
* // => { 'a': 1, 'c': 3 }
*/
var pick = flatRest(function(object, paths) {
return object == null ? {} : basePick(object, arrayMap(paths, toKey));
return object == null ? {} : basePick(object, paths);
});
module.exports = pick;