Skip to content

Home > @jview/utils > isArray

isArray() function

是否是数组类型

Signature:

typescript
export declare function isArray<T = unknown>(val: unknown): val is T[];
export declare function isArray<T = unknown>(val: unknown): val is T[];

Parameters

ParameterTypeDescription
valunknown

Returns:

val is T[]