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