Constructs a new FilterStream.
The type of input items.
The narrowed type of passing items, defaulting to T.
Predicate function returning true for items to pass through.
ReadonlyreadableThe readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
ReadonlywritableThe writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
A
TransformStreamthat filters incoming chunks based on a sync or async predicate.Example