@szilanor/stream
    Preparing search index...

    Function endWithAsync

    • Returns an AsyncOperationFunction that yields the entries of the source Iterable then the parameter value.

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      Parameters

      • ...values: T[]

        The values to append to the source Iterable.

      Returns AsyncOperationFunction<T, T>

      An AsyncOperationFunction that yields the entries of the source Iterable then the parameter value.

      const result = endWithAsync<number>([1, 2, 3], 4, 5, 6);
      console.log(result); // [1, 2, 3, 4, 5, 6]