AsyncIterable to Array conversion for JavaScript. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {asyncIterableToArray} from '@async-iterable-iterator/async-iterable-to-array';
let asyncIterable = ...;
let array = await asyncIterableToArray(asyncIterable);