I'm trying to map all projects in one array:
[
[
{ id: 0, name: 'New Project', apiKey: '.'},
{ id: 1, name: 'New Project', apiKey: '.}
],[
{ id: 3, name: 'New Project', apiKey: '.'},
{ id: 4, name: 'New Project', apiKey: '.}
]
]
All in one array (output):
[
{ id: 0, name: 'New Project', apiKey: '.'},
{ id: 1, name: 'New Project', apiKey: '.},
{ id: 3, name: 'New Project', apiKey: '.'},
{ id: 4, name: 'New Project', apiKey: '.}
]
I tried var result = allUserProjects.map(user => {user.map(project => project)})
but that changes nothing