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 count or the function will never return.
count
Asynchronous iterable
Number of items to return, by default all.
Optional
Returns an array of values from an iterator.
Note: If the iterator is infinite, be sure to provide a
count
or the function will never return.Param: it
Asynchronous iterable
Param: count
Number of items to return, by default all.
Returns