612 B
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>