A transform stream that filters previous stream elements according to a predicate
Readable .from([1, 0, 11, 13, 12, 15, 7, 5, 6, 8]) .pipe(new Map((n: number) => n + 1)) .on("close", (chunks: number[]) => { console.log(chunks); // [0, 12, 6, 8] });
the type of record passed down by previous streams
The predicate function used to filter the stream
The stream's options
Event emitter The defined events on documents including:
A utility method for creating Readable Streams out of iterators.
Generated using TypeDoc
A transform stream that filters previous stream elements according to a predicate
Readable .from([1, 0, 11, 13, 12, 15, 7, 5, 6, 8]) .pipe(new Map((n: number) => n + 1)) .on("close", (chunks: number[]) => { console.log(chunks); // [0, 12, 6, 8] });