Function assertIsTupleable

Asserts that the input is a tupleable array. A tupleable array is an array with a length of at least 2.

Error if the input is not a tupleable array.

const fn = (x: unknown) => {
assertIsTupleable(x); // throws an error if x is not a tupleable array
return x; // x has inferred type Tupleable<unknown>
};