Creates a sequence that yields the current elements followed by the supplied element.
Type of elements within the source iterable.
source
The source iterable.
Element appended to the end of the sequence.
A new enumerable whose final item is the provided element.
The source sequence is not modified; enumeration is deferred until the returned sequence is iterated.
const numbers = [1, 2, 3];const appended = append(numbers, 4).toArray();console.log(appended); // [1, 2, 3, 4] Copy
const numbers = [1, 2, 3];const appended = append(numbers, 4).toArray();console.log(appended); // [1, 2, 3, 4]
Creates a sequence that yields the current elements followed by the supplied element.