I have two arrays with the same number of elements which maps 1:1
const array1 = [1, 3, 2]
const array2 = [U2, U1, U3]
How can I generate a new array (or map) from array1 & array2 and have something like this ?
const result = [[1, U1], [2, U2], [3, U3]]