up.util.last(array)

JavaScript function

Returns the last element of the given array or string.


Parameters

array
required
Type: Array<T> | string

Return value

Type: T | string