Description

Get the first element of an array.

Syntax

first(array)

Parameters

Input ParameterTypeDescription
arrayArrayThe array to query

Return value

Type
any

Sample

ExampleResultDescription
first([1, 2, 3])1Returns the first element

To view all the List functions, click here.