Returns the source as an array.
Type of items in the source.
Collector that returns the source as an array.
const result = toArray<number>()([1, 2, 3]);console.log(result); // [1, 2, 3] Copy
const result = toArray<number>()([1, 2, 3]);console.log(result); // [1, 2, 3]
Returns the source as an array.