Concatenates the given values to the end of the source Iterable.
Type of items in the Iterables.
Rest
Values to concatenate.
Returns a new Iterable that yields the elements of the source Iterable followed by the given values.
const result = endWith(4, 5, 6)([1, 2, 3]);console.log([...result]); // [1, 2, 3, 4, 5, 6] Copy
const result = endWith(4, 5, 6)([1, 2, 3]);console.log([...result]); // [1, 2, 3, 4, 5, 6]
Concatenates the given values to the end of the source Iterable.