UNPKG

@klodianimeri/pipejs

Version:

Pipe functions that provide convenient and efficient ways to work with iterators.

13 lines 405 B
import { assertSync, push, Yields } from "../util/index.js"; export function concat(source) { assertSync(source); return () => { return (result) => { if (result === null || result === void 0 ? void 0 : result.done) { return push(Yields(Array.from(source)), result); } return result; }; }; } //# sourceMappingURL=concat.js.map