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 )