last

last(): MemberType;

The last method of the Array class returns a reference to the last entry in the array.

This method is equivalent to using the bracket ([ ]) operators with an index value equal to the size of the array (array.size).