ts-array-as-tuple
Function that asserts the length of an array and casts it to a tuple.
Example
; ; ; asTuplearray, 1;// Error: Unexpected array length, expected 1 but got 2. asTuplearray, 3;// Error: Unexpected array length, expected 3 but got 2.