Skip to content

Variable: isArray() ​

ts
const 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