Home > rc-js-util > arrayLast
Gets the last value in ArrayLike
.
Signature:
export declare function arrayLast<TItem>(items: ArrayLike<TItem>): TItem | undefined;
Parameter | Type | Description |
---|---|---|
items | ArrayLike<TItem> |
Returns:
TItem | undefined
The first value in map
, otherwise undefined
where size 0.
See mapFirstValue().