Skip to content

AIDC Toolkit / Utility / mapIterable

Function: mapIterable() ​

mapIterable<TInput, TOutput>(values, indexedCallback): Iterable<TOutput>

Defined in: iterable-utility.ts:39

Map an input iterable to an output iterable that applies a transformer callback to each value in the input.

Type Parameters ​

TInput ​

TInput

Input type.

TOutput ​

TOutput

Output type.

Parameters ​

values ​

Iterable<TInput>

Input values iterable.

indexedCallback ​

IndexedCallback<TInput, TOutput>

Callback to transform input value to output value.

Returns ​

Iterable<TOutput>

Output values iterable.