Skip to content

Function: isArray() ​

ts
function isArray(value: unknown): value is unknown[];

Type guard to check if a value is an array

Parameters ​

ParameterTypeDescription
valueunknownThe value to check

Returns ​

value is unknown[]

True if the value is an array, false otherwise