tupleOf
Guard for fixed-length tuples with per-index guards.
import { tupleOf, isString, isNumber } from 'is-kit';// Use varargs with tupleOf for best inferenceconst isPair = tupleOf(isString, isNumber);isPair(['x', 1]); // trueisPair(['x']); // false