@szilanor/stream
    Preparing search index...

    Function startWithAsync

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

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      Parameters

      • ...values: T[]

        The values to yield before the entries of the source Iterable.

      Returns AsyncOperationFunction<T, T>

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

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