function isArray(val): val is unknown[]
Returns true if the specified value is an array.
This is safer than using Array.isArray directly because it doesn't introduce an any
type.
Parameter | Type | Description |
---|
val | unknown | Variable to test. |
val is unknown[]
Whether variable is an array.