I'm trying to mix this objects which contain an array:
var a = {[
{...},
{...},
{...}
]};
var b = {[
{...},
{...},
{...}
]};
in one level array:
[
{...},
{...},
{...},
{...},
{...},
{...}
];
In JavaScript, I'm trying this without success:
var arr = a.concat(b);
because this gives me:
[
{[
{...},
{...},
{...}
]},
{[
{...},
{...},
{...}
]}
]
how can I obtain one level array?