Edit this page

up.util up.util.last(array)
JavaScript function

Returns the last element of the given array or string.


Parameters

array Array<T>|string

Return value

T|string