Gets the last element of array.
array
The array to query.
Returns the last element of array.
5.6.0
last([1, 2, 3])// => 3 Copy
last([1, 2, 3])// => 3
Gets the last element of
array
.