UNPKG

@klodianimeri/pipejs

Version:

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

11 lines (10 loc) 272 B
import { Pipe } from "../pipe.js"; export function ignoreElements(): Pipe { return () => { return (result: IteratorResult<any>): IteratorResult<any> => { if (result?.done) { return result; } }; } }