filter

abstract fun filter(cbk: Value): Readable
abstract fun filter(cbk: (Value) -> Boolean): Readable

Filter this stream to produce results from a new Readable.

Return

The filtered stream.

Parameters

cbk

The callback to filter with.


abstract fun filter(cbk: Value, options: Value): Readable

Filter this stream to produce results from a new Readable.

Return

The filtered stream.

Parameters

cbk

The callback to filter with.

options

The options for the filter operation.


abstract fun filter(options: ReadableMapOptions, cbk: (Value) -> Boolean): Readable

Filter this stream to produce results from a new Readable.

Return

The filtered stream.

Parameters

options

The options for the filter operation.

cbk

The callback to filter with.