Array.last

Array.last

Array.last

Function

Returns the last element of the array.

Syntax

Parameters

None.

Return value

TypeDescription
AnyThe last element; an empty array returns empty.

Code Example

Notes

  • The original array is not modified.