Returns an array of values from an iterator.
const data = await toArray(adsrIterable(opts, 10)); Copy
const data = await toArray(adsrIterable(opts, 10));
Note: If the iterator is infinite, be sure to provide a limit via the options or the function will never return.
Asynchronous iterable
Options when converting to array.
Returns an array of values from an iterator.
Note: If the iterator is infinite, be sure to provide a limit via the options or the function will never return.