JavaScript Join Sist of Objects с списками
// 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