Skip to content

toArray

toArray<A, B>(tuple): readonly (A | B)[]

Defined in: Core/Tuple.ts:126

Converts the pair to a heterogeneous readonly array readonly (A | B)[].

A

B

Tuple<A, B>

readonly (A | B)[]

Tuple.toArray(Tuple.make("hello", 42)); // ["hello", 42]