@lang:filter
Keep elements of an array for which a helper returns truthy.
Returns: array
Syntax
Section titled “Syntax”@lang:filter(arr fn)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
arr | array | Source array |
fn | helper | Predicate helper returning bool |