Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/yxz/async/mod.ts>toArray

Deno Standard Extensions
Latest
function toArray
import { toArray } from "https://deno.land/x/yxz@0.32.0/async/mod.ts";

Type Parameters

T
optional
M = T

Parameters

items: AsyncIterable<T> | Iterable<T>
optional
mapfn: (item: T) => M
optional
thisArg: unknown

Returns

Promise<Awaited<M>[]>