I have two arrays that I'd like to combine, but in my searching I've only been able to find Array.concat
.
let a = [1,2,3,4,5]
let b = [6,7,8,9,10]
How do I combine these to create the following?
let combine = [
[1,6],
[2,7],
[3,8],
[4,9],
[5,10]
]