function toArrayimport { toArray } from "https://deno.land/x/yxz@0.32.0/async/mod.ts"; toArray<T, M = T>(items: AsyncIterable<T> | Iterable<T>,mapfn?: (item: T) => M,thisArg?: unknown,): Promise<Awaited<M>[]>Implement https://github.com/tc39/proposal-array-from-async Type ParametersToptionalM = TParametersitems: AsyncIterable<T> | Iterable<T>optionalmapfn: (item: T) => MoptionalthisArg: unknownReturnsPromise<Awaited<M>[]>