@szilanor/stream
    Preparing search index...

    Function endWith

    • Returns an OperationFunction that concatenates the given values to the end of the source Iterable.

      Type Parameters

      • T

        Type of items in the Iterables.

      Parameters

      • ...values: T[]

        Values to concatenate.

      Returns OperationFunction<T, T>

      An OperationFunction that concatenates the given values to the end of the source Iterable.

      const result = endWith(4, 5, 6)([1, 2, 3]);
      console.log([...result]); // [1, 2, 3, 4, 5, 6]