var arr1 = [1,2,3]; var arr2 = [4,5,6]; arr1 = [...arr1, ...arr2]; console.log(arr1); //[1, 2, 3, 4, 5, 6] Run code snippetHide results