Skip to main content

find

The first matching element, or nil

find(arr: array, predicate: closure) -> any

Arguments​

NameType
arrarray
predicateclosure

Example​

{{ find([1, 5, 9], # > 3) }}

Returns 5.