up.util up.util.pickBy(object, tester)
JavaScript function

This feature is experimental. Please share your experiences so we know what to keep or change.

Returns a copy of the given object that only contains properties that pass the given tester function.


Parameters

object
required
Type: Object
tester
required

A function that will be called with each property.

The arguments are the property value and key.

Type: Function(value, key): boolean

Return value

Type: Object