Edit this page

up.util up.util.find(list, tester)
JavaScript function

Passes each element in the given array-like value to the given function. Returns the first element for which the function returns a truthy value.

If no object matches, returns undefined.


Parameters

list List<T>
tester Function(value): boolean

Return value