summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/pickBy.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/pickBy.js')
-rw-r--r--tools/eslint/node_modules/lodash/pickBy.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/eslint/node_modules/lodash/pickBy.js b/tools/eslint/node_modules/lodash/pickBy.js
index d355442c9e..6e9e193ece 100644
--- a/tools/eslint/node_modules/lodash/pickBy.js
+++ b/tools/eslint/node_modules/lodash/pickBy.js
@@ -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;