Skip to main content

first

The first element, or nil when the array is empty

first(arr: array) -> any

Arguments

NameType
arrarray

Example

{{ first([10, 20, 30]) }}

Returns 10.