yoko0180
6/26/2019 - 8:31 PM

set_arrays( [1,2], [3,4] ) //=> [ [1,3], [2,4] ]

set_arrays( [1,2], [3,4] ) //=> [ [1,3], [2,4] ]

const set_arrays = (arr1, arr2) => 
  arr1.map( (a, i) => [a, arr2[i]] )