Imagine having 2 arrays of objects that you want to merge in a parallel manner. For instance
var array = [{foo: 2} , {boo: 3}]
var array2 = [{foo2: 2}, {boo2: 4}]
The outcome would be
var array3 = [{foo:2,foo2:2},{boo:3,boo2:4}]
In what way can this be achieved using javascript?