@unction/last
v11.13.0
Published
Returns the last item of an ordered list
Downloads
39
Readme
@unction/last
OrderedArray | Set | Record<string | number | symbol, B> | Map<B, A> | string => A
Returns the last item of an ordered list.
last([1, 2, 3]) // 3
last("abc") // "c"