Returns the first element in the given array for which the given function returnsDocumentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
true. The <function> parameter must be included.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<function> | A Lambda function used to check elements in the array | A Lambda function returning BOOLEAN |
<array> | The array evaluated by the function | Any array |
Return Type
The element type of<array>
Examples
The following example returns the first value in thelevels array greater than 2:
4