I have an array containing a further 2 arrays of objects and I wanted to turn it into a single array of objects. I have posted the current code and result I want
I have tried the concat method but possibly implementing wrong?
var code = [
[{Adults:"1", Price: "14.50"}],
[{Adults:"1", Price: "20.50"}]
]
var result = [
{Adults: "1", Price: "14.50" },
{Adults: "1", Price: "20.50"}
]