• Invokes an action for each element in the iterable sequence, and propagates all observer messages through the result sequence. This method can be used for debugging, logging, etc. by intercepting the message stream to run arbitrary actions for messages on the pipeline.

    Type Parameters

    • TSource

      The type of the elements in the source sequence.

    Parameters

    • observer: PartialObserver<TSource>

      Observer whose methods to invoke as part of the source sequence's observation.

    Returns MonoTypeOperatorFunction<TSource>

    The source sequence with the side-effecting behavior applied.

  • Invokes an action for each element in the iterable sequence, and propagates all observer messages through the result sequence. This method can be used for debugging, logging, etc. by intercepting the message stream to run arbitrary actions for messages on the pipeline.

    Type Parameters

    • TSource

      The type of the elements in the source sequence.

    Parameters

    • Optional next: null | ((value) => any)

      Function to invoke for each element in the iterable sequence.

    • Optional error: null | ((err) => any)

      Function to invoke upon exceptional termination of the iterable sequence.

    • Optional complete: null | (() => any)

      Function to invoke upon graceful termination of the iterable sequence.

    Returns MonoTypeOperatorFunction<TSource>

    The source sequence with the side-effecting behavior applied.

Generated using TypeDoc