Creates a sink collecting all items into an array.
The type of items in the stream
A sink that collects all items into an array
await items([1, 2, 3])(toArray()); // [1, 2, 3]await items(new Set([1, 2, 3]))(toArray()); // [1, 2, 3] Copy
await items([1, 2, 3])(toArray()); // [1, 2, 3]await items(new Set([1, 2, 3]))(toArray()); // [1, 2, 3]
Creates a sink collecting all items into an array.