📅  最后修改于: 2022-03-11 15:02:14.762000             🧑  作者: Mango
// 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,
),
)