Edit this page

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 Object
tester Function(string, string, object): boolean

A function that will be called with each property.

The arguments are the property value, key and the entire object.

Return value