showing results for - "javascript join list of objects with lists"
Nick
03 Feb 2016
1// map results in any[][] which is destructured and concatenated
2// object: {someBoolean: boolean, objectWithLists: {id: string, list:any[]}[]}
3[].concat(...object.listOfObjectsWithListAndId.map(
4                            (obj: {id: string, list: any[]}) => obj.list,
5                          ),
6                        )
similar questions
queries leading to this page
javascript join list of objects with lists