isTypedTuple

function isTypedTuple<Tuple>(guards): (val) => val is Tuple

Returns true if the specified value is an array with the same length as the provided type guards, and each element
passes the type guard at the same index in guards.

Type parameters

Type parameter
Tuple extends readonly unknown[]

Parameters

ParameterType
guards{ [K in string | number | symbol]: Function }

Returns

Function

Parameters

ParameterType
valunknown

Returns

val is Tuple