Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "operators/switch-tap"

Index

Functions

Functions

switchTap

  • switchTap<T, O>(project: (value: T, index: number) => O): MonoTypeOperatorFunction<T>
  • Behaves exactly like switchMap, except that it maps all values back to the initial value.

    Type parameters

    • T

    • O: ObservableInput<any>

    Parameters

    • project: (value: T, index: number) => O

      Projection function which returns the inner observable.

        • (value: T, index: number): O
        • Parameters

          • value: T
          • index: number

          Returns O

    Returns MonoTypeOperatorFunction<T>

Generated using TypeDoc