Skip to content

toArray

toArray<A>(s): readonly A[]

Defined in: Data/Uniq.ts:279

Converts the collection to a readonly array in insertion order.

A

ReadonlySet<A>

readonly A[]

Uniq.toArray(Uniq.fromArray([3, 1, 2])); // [3, 1, 2]