Function map

  • 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)!

    Type Parameters

    • TIn

    • TOut

    Parameters

    • mapFn: ((v: TIn) => TOut | Promise<TOut>)
        • (v: TIn): TOut | Promise<TOut>
        • Parameters

          • v: TIn

          Returns TOut | Promise<TOut>

    Returns TTransIteratorSyncOrAsync<TIn, TOut>

Generated using TypeDoc