Documentation
    Preparing search index...

    Function map

    • Transforms chunks from one value to another.

      Type Parameters

      • I
      • O

      Parameters

      • fn: (x: I) => O | Promise<O>

      Returns TransformStream<I, O>

      --1----2----3----4----|

      map((x) => x + 1)

      --2----3----4----5----|