Bump to v4.14.0.

This commit is contained in:
John-David Dalton
2016-07-24 09:52:33 -07:00
parent 295d8cf415
commit a8d3718760
253 changed files with 2469 additions and 1808 deletions

View File

@@ -1,4 +1,4 @@
var arrayReduce = require('./_arrayReduce');
var basePickBy = require('./_basePickBy');
/**
* The base implementation of `_.pick` without support for individual
@@ -11,12 +11,9 @@ var arrayReduce = require('./_arrayReduce');
*/
function basePick(object, props) {
object = Object(object);
return arrayReduce(props, function(result, key) {
if (key in object) {
result[key] = object[key];
}
return result;
}, {});
return basePickBy(object, props, function(value, key) {
return key in object;
});
}
module.exports = basePick;