mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Update filterObject docs to reference pickBy (#3861)
* Update `filterObject` docs to reference `pickBy`.
This commit is contained in:
committed by
John-David Dalton
parent
ab960bdc96
commit
4851183757
@@ -3,12 +3,14 @@
|
||||
* `predicate` returns truthy for. The predicate is invoked with three
|
||||
* arguments: (value, key, object).
|
||||
*
|
||||
* If you want an object in return, consider `pickBy`.
|
||||
*
|
||||
* @since 5.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns the new filtered array.
|
||||
* @see pull, pullAll, pullAllBy, pullAllWith, pullAt, remove, reject
|
||||
* @see pickBy, pull, pullAll, pullAllBy, pullAllWith, pullAt, remove, reject
|
||||
* @example
|
||||
*
|
||||
* const object = { 'a': 5, 'b': 8, 'c': 10 }
|
||||
|
||||
Reference in New Issue
Block a user