@szilanor/stream
    Preparing search index...

    Function tapAsync

    • Returns an AsyncOperationFunction that calls a callback function on each entry.

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      Parameters

      Returns AsyncOperationFunction<T, T>

      An AsyncOperationFunction that calls a callback function on each entry.

      const result = tapAsync<number>([1, 2, 3], (value) => console.log(value));
      console.log(result); // [1, 2, 3]