js-util

Home > rc-js-util > arrayLast

arrayLast() function

Gets the last value in ArrayLike.

Signature:

export declare function arrayLast<TItem>(items: ArrayLike<TItem>): TItem | undefined;

Parameters

Parameter Type Description
items ArrayLike<TItem>  

Returns:

TItem | undefined

The first value in map, otherwise undefined where size 0.

Remarks

See mapFirstValue().