Function tap

  • Execute an action for each value yielded by the provided iterable.

    Returns

    a iterable that will yield all values yielded by the provided iterable.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • action: ((arg: T) => void | Promise<void>)

      A side-effect producing function that consumes values yielded by the provided iterable and returns nothing or a promise that resolves to void.

        • (arg: T): void | Promise<void>
        • Parameters

          • arg: T

          Returns void | Promise<void>

    • iterable: Iterable<T> | AsyncIterable<T>

    Returns AsyncIterableIterator<T>

Generated using TypeDoc