Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/map"

Index

Functions

Functions

map

  • Returns a Transform with the results of applying the given function to each emitted item of the original observable.

    Type parameters

    • S

      Type of items emitted by the original observable.

    • T

      Type of items returned by f.

    Parameters

    • f: function

      Function called with each emitted item. If it returns a promise, the result is awaited then emitted.

        • (x: S): T | Promise<T>
        • Parameters

          • x: S

          Returns T | Promise<T>

    Returns Transform<S, T>

    Transform that emits items produced by f.

Generated using TypeDoc