function isTypedArray<T>(typeGuard): (val) => val is T[]
Returns true if the specified value is an array and every element passes the type guard function.
Type parameters
| Type parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
typeGuard | (a) => a is T | the type guard function to test every element in the array. |
Returns
Function
Whether variable is an array of the given type.
Parameters
| Parameter | Type |
|---|---|
val | unknown |
Returns
val is T[]