toArray
Collect all items in this stream into an array.
Return
A promise that resolves with the array of items.
Collect all items in this stream into an array.
Return
A promise that resolves with the array of items.
Parameters
options
The options for the toArray operation.