Appends the given Iterables to the end of the source Iterable.
Type of items in the Iterables.
Rest
Iterables to append.
Returns a new Iterable that yields the elements of the source Iterable followed by the elements of the given Iterables.
const result = appendWith([4, 5, 6], [7, 8, 9])([1, 2, 3]);console.log([...result]); // [1, 2, 3, 4, 5, 6, 7, 8, 9] Copy
const result = appendWith([4, 5, 6], [7, 8, 9])([1, 2, 3]);console.log([...result]); // [1, 2, 3, 4, 5, 6, 7, 8, 9]
Appends the given Iterables to the end of the source Iterable.