UNPKG

iterama

Version:

Composable functional (async) iterable helpers

16 lines (12 loc) 286 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.toArrayAsync = void 0; const toArrayAsync = async iterable => { const result = []; for await (const value of iterable) { result.push(value); } return result; }; exports.toArrayAsync = toArrayAsync;