1
0
Fork 0
js-utils/docs/api/js-utils.isarray_1.md

612 B

Home > @apextoaster/js-utils > isArray

isArray() function

Wrapper for Array.isArray with better readonly type handling.

Signature:

export declare function isArray<TVal>(list: TVal | ReadonlyArray<TVal>): list is ReadonlyArray<TVal>;

Parameters

Parameter Type Description
list TVal | ReadonlyArray<TVal>

Returns:

list is ReadonlyArray<TVal>