DGHi Panda Codes, Many thanks for your feedback. I have updated the post to include why it's best to use the spread operator.Reply·Article·Aug 22, 2022·How to create a function to take an array and append an element at the end.