UNPKG

@klodianimeri/pipejs

Version:

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

16 lines 423 B
export function pop() { return () => { let last; return (result) => { if (result === null || result === void 0 ? void 0 : result.done) { return result; } let lastResult = last; last = result; if (typeof last !== "undefined") { return lastResult; } }; }; } //# sourceMappingURL=pop.js.map