JavaScript bergabung dengan daftar objek dengan daftar
// map results in any[][] which is destructured and concatenated
// object: {someBoolean: boolean, objectWithLists: {id: string, list:any[]}[]}
[].concat(...object.listOfObjectsWithListAndId.map(
(obj: {id: string, list: any[]}) => obj.list,
),
)
Scary Swan