isArray
isArray(
value):value is unknown[]
Type guard to check if a value is an array Useful for narrowing unknown types from API responses
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is unknown[]
true if value is an array