isExactLength

function isExactLength<T, N>(arr, exactLength): arr is Tuple<T, N>

Type parameters

Type parameter
T
N extends number

Parameters

ParameterType
arrreadonly T[]
exactLengthN

Returns

arr is Tuple<T, N>