Asserts that the input is a tupleable array.
A tupleable array is an array with a length of at least 2.
Throws
Error if the input is not a tupleable array.
Example
constfn = (x: unknown) => { assertIsTupleable(x); // throws an error if x is not a tupleable array returnx; // x has inferred type Tupleable<unknown> };
assertIsTupleable<T>(x): asserts x is Tupleable<T>
Asserts that the input is a tupleable array. A tupleable array is an array with a length of at least 2.
Throws
Error if the input is not a tupleable array.
Example