The object to iterate over.
Optional
predicate: Predicate<string, T, Record<string, T>>The function invoked per iteration.
Returns the new filtered array.
Optional
predicate: Predicate<string, T, T[]>Optional
predicate: Predicate<any, any, any>
Iterates over properties of
object
, returning an array of all elementspredicate
returns truthy for. The predicate is invoked with three arguments: (value, key, object).If you want an object in return, consider
pickBy
.Since
5.3.0
See
[[pickBy]],[[pull]],[[pullAll]],[[pullAllBy]],[[pullAllWith]],[[pullAt]],[[remove]],[[reject]]
Example