the type of record passed down by previous streams
The number of items after which the stream should end
The stream's options
The number of items after which the stream should end
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 reduces the number of elements processed
Readable .from([1, 2, 3, 4]) .pipe(new Limit(2)) .on("close", (chunks: number[]) => { console.log(chunks); // [1, 2] });