JS Array Warning: When using for index in array, the index is a stringjs array mergenewpushJS Array Usagejs map()js reduce()js filter()js sort()js splicejs every()js some()js slice()js fill()js findIndex(query)js find(filter)js indexOf()js reverse()js join()js shift()js unshift()js pop()js findLast()js findLastIndexjs lastIndexOfjs Array at() JS Array Static MethodsJS Array.from()JS Array of() ALl in one2 Ways to Merge Arrays in JavaScript | SamanthaMing.comHere are 2 ways to combine your arrays and return a NEW array. I like using the Spread operator. But if you need older browser support, you should use Concat. Alternatively, you can also write the concat method, in this regard: As you can see, this way of writing it doesn't manipulate or change the existing array.https://www.samanthaming.com/tidbits/49-2-ways-to-merge-arrays/