@lang:find
Return the first element that satisfies the predicate.
Returns: any
Syntax
Section titled “Syntax”@lang:find(arr fn)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
arr | array | Source array |
fn | helper | Predicate helper returning bool |