UNPKG

iterama

Version:

Composable functional (async) iterable helpers

12 lines (10 loc) 240 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.toValueAsync = void 0; const toValueAsync = async iterable => { for await (const value of iterable) { return value; } }; exports.toValueAsync = toValueAsync;