@cprecioso/async-iterable-helpers
    Preparing search index...

    Function map

    • Transforms each item using fn. The mapping function may be async; its result is awaited before being yielded.

      Type Parameters

      • T
      • U

      Parameters

      • fn: (item: Awaited<T>) => U | Promise<U>

        Maps an item to a new value (or a promise of one).

      Returns PipeFn<T, Awaited<U>>

      A pipe that yields the mapped values.