I been searching for 3 hours and couldnt find an answer. The only think i can think of is to use for loop and push each element.
How i got this problem. I fetched some charges, each charge has an array of items. So I map the charge and returned the array items but It gave me this.
Example
let object = [
[{id:1},{id:2}],
[{id:3},{id:4}],
[{id:5},{id:6}]
]
What i am looking for :
object =[{id:1},{id:2},{id:3},{id:4},{id:5},{id:6}]