Edit this page

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

This feature is experimental. It may be changed or removed in a future version.

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