@async-iterable-iterator/async-iterator-to-array
v0.0.1
Published
AsyncIterator to Array conversion for JavaScript
Downloads
438
Readme
:oden: @async-iterable-iterator/async-iterator-to-array
AsyncIterator to Array conversion for JavaScript. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {asyncIteratorToArray} from '@async-iterable-iterator/async-iterator-to-array';
let asyncIterator = ...;
let array = await asyncIteratorToArray(asyncIterator);