Skip to main content
Returns the first element in the given array for which the given function returns true. The <function> parameter must be included.

Syntax

Parameters

Return Type

The element type of <array>

Examples

The following example returns the first value in the levels array greater than 2:

Rows: 1Execution time: 5.82ms