Description

Get the last element of array.

Syntax

last(array)

Parameters

Input ParameterTypeDescription
arrayArrayThe array to query.

Return value

Type
any

Sample

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

To view all the List functions, click here.