Skip to content

toArray

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

Defined in: Utils/Uniq.ts:273

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]