How to flatten a nested array of objects ?

I have a nested array of objects like the following : [ [ {name: "John", age: 20}, {name: "Lucy", age: 52} ], [ {name: "Amina", age: 27} ] ].

I want to flatten it and obtain the following : [ {name: "John", age: 20}, {name: "Lucy", age: 52}, {name: "Amina", age: 27} ]

When using the flatten filter, my objects are broken down and I obtain [ "John", 20, "Lucy", 52, "Amina", 27 ]

Any idea on how to make this work without having to use a for loop and merging the sub arrays one by one ?

7 replies