map

abstract fun map(cbk: Value): Readable
abstract fun map(cbk: (Value) -> Value): Readable

Map over this stream to produce results from a new Readable.

Return

The mapped stream.

Parameters

cbk

The callback to map with.


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

Map over this stream to produce results from a new Readable.

Return

The mapped stream.

Parameters

cbk

The callback to map with.

options

The options for the map operation.


abstract fun map(options: ReadableMapOptions, cbk: (Any) -> Value): Readable

Map over this stream to produce results from a new Readable.

Return

The mapped stream.

Parameters

options

The options for the map operation.

cbk

The callback to map with.