UNPKG

@klodianimeri/pipejs

Version:

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

14 lines 356 B
import { Yields, push } from "../util/index.js"; export function endWith(...elements) { return () => { return (result) => { if (result.done) { return push(Yields(elements), result); } else { return result; } }; }; } //# sourceMappingURL=end-with.js.map