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,5 +1,6 @@
var baseIteratee = require('./_baseIteratee'),
basePickBy = require('./_basePickBy');
basePickBy = require('./_basePickBy'),
getAllKeysIn = require('./_getAllKeysIn');
/**
* Creates an object composed of the `object` properties `predicate` returns
@@ -10,8 +11,7 @@ var baseIteratee = require('./_baseIteratee'),
* @since 4.0.0
* @category Object
* @param {Object} object The source object.
* @param {Array|Function|Object|string} [predicate=_.identity]
* The function invoked per property.
* @param {Function} [predicate=_.identity] The function invoked per property.
* @returns {Object} Returns the new object.
* @example
*
@@ -21,7 +21,7 @@ var baseIteratee = require('./_baseIteratee'),
* // => { 'a': 1, 'c': 3 }
*/
function pickBy(object, predicate) {
return object == null ? {} : basePickBy(object, baseIteratee(predicate));
return object == null ? {} : basePickBy(object, getAllKeysIn(object), baseIteratee(predicate));
}
module.exports = pickBy;