isTypedArray

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

ParameterTypeDescription
typeGuard(a) => a is Tthe type guard function to test every element in the array.

Returns

Function

Whether variable is an array of the given type.

Parameters

ParameterType
valunknown

Returns

val is T[]