Imagine you have this :
[[{id: 1}], [{id: 2}]]
Is posible to convert the previous array in something like this? :
[{id:1}, {id:2}]
You can simply use Array.prototype.flat for that:
console.log([
[{
id: 1
}],
[{
id: 2
}]
].flat());