- Preparing search index...
- The search index is not available
itr8
- map<TIn, TOut>(mapFn: ((v: TIn) => TOut | Promise<TOut>)): TTransIteratorSyncOrAsync<TIn, TOut>
-
Parameters
-
mapFn: ((v: TIn) => TOut | Promise<TOut>)
-
- (v: TIn): TOut | Promise<TOut>
-
Returns TOut | Promise<TOut>
Translate each element into something else by applying the supplied mapping function to each element.
The mapping function can be asynchronous (in which case the resulting iterator will be asynchronous regardless of the input iterator)!