Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / mapStream

Function: mapStream()

mapStream<T, U>(stream, mapper): AsyncGenerator<U>

Defined in: stream-utils.ts:218

Type Parameters

T

T

U

U

Parameters

stream

AsyncIterable<T>

mapper

(chunk) => U

Returns

AsyncGenerator<U>

Released under the MIT License.