UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

18 lines (16 loc) 316 B
import "../../chunks/chunk-U5RRZUYZ.js"; // src/core/util/Async.ts async function accumulate(gen) { const acc = []; for await (const item of gen) acc.push(item); return acc; } async function* toGenerator(iterable) { for (const item of iterable) yield item; } export { accumulate, toGenerator };