/** * Async Generator To Array */ export async function agta(ag: AsyncIterable | Iterable) { const a = []; for await (const el of ag) { a.push(el); } return a; }