Lets say I have 2 arrays of objects and I want to merge their objects in parallel manner. For example
var array = [{foo: 2} , {boo: 3}]
var array2 = [{foo2: 2}, {boo2: 4}]
The result will be
var array3 = [{foo:2,foo2:2},{boo:3,boo2:4}]
How can I do it in javascript?