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