xdashReadme | API


xdash / last

Function: last()

last<T>(arr): T

Returns the last element of an array

Type parameters

T

Parameters

arr: T[]

array to get the last element from

Returns

T

the last element of the array

Source

array.ts:6