const arr1 = [0, 1, 2, 3]; const arr2 = [4, 5, 6 ,7]; const arrres = arr1.map ((v,i) => [v, arr2[i]]);