- array_fromAsync<T>(iterableOrArrayLike): Promise<T[]>
Parameters
- iterableOrArrayLike: AsyncIterable<T, any, any> | Iterable<T | PromiseLike<T>, any, any> | ArrayLike<T | PromiseLike<T>>
Returns Promise<T[]>
- array_fromAsync<T, U>(iterableOrArrayLike, mapFn, thisArg?): Promise<Awaited<U>[]>
Parameters
- iterableOrArrayLike: AsyncIterable<T, any, any> | Iterable<T, any, any> | ArrayLike<T>
- mapFn: ((value: Awaited<T>) => U)
Optional
thisArg: any
Returns Promise<Awaited<U>[]>
Creates an array from an async iterator or iterable object.