remove duplicate descriptions

This commit is contained in:
Jerry Kurian
2019-09-09 15:58:35 -04:00
parent 7aeea4815a
commit 83ef6e9734
23 changed files with 21 additions and 129 deletions

View File

@@ -1,10 +1,5 @@
import { Transform, TransformOptions } from "stream";
/**
* Return a ReadWrite stream that filters out streamed chunks for which the predicate does not hold
* @param predicate Predicate with which to filter scream chunks
* @param options
* @param options.objectMode Whether this stream should behave as a stream of objects
*/
export function filter<T>(
predicate:
| ((chunk: T, encoding: string) => boolean)