ArrayLast

Returns the last element of an array

ArrayLast( array )

Returns: any

Argument Description
array
array, required

an 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