Lucee Function Reference

arrayfirst()

Returns the first item from an array. Throws an error if the array is empty.

Example

arrayfirst(array array):any

Category

array

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
array array  Yes The array to obtain the first Item from