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.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/eslint/node_modules/lodash/pickBy.js b/tools/eslint/node_modules/lodash/pickBy.js
index 611859eff1..d355442c9e 100644
--- a/tools/eslint/node_modules/lodash/pickBy.js
+++ b/tools/eslint/node_modules/lodash/pickBy.js
@@ -7,9 +7,11 @@ var baseIteratee = require('./_baseIteratee'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The source object.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per property.
* @returns {Object} Returns the new object.
* @example
*
@@ -19,7 +21,7 @@ var baseIteratee = require('./_baseIteratee'),
* // => { 'a': 1, 'c': 3 }
*/
function pickBy(object, predicate) {
- return object == null ? {} : basePickBy(object, baseIteratee(predicate, 2));
+ return object == null ? {} : basePickBy(object, baseIteratee(predicate));
}
module.exports = pickBy;