ArrayLast

Returns the last element of an array

Returns: any

Usage

ArrayLast( array )

Arguments

Argument Description
array
(array, required)

a array

Examples

Member Function

names = ["Marcus", "Sarah", "Josefine"];
	dump(names.last()); // outputs 'Josefine'

Non-Member Function

names = array("Marcus","Sarah","Josefine");
	dump(arrayLast(names)); // outputs 'Josefine'

See also