You can try this
const list = [
{
"a": "2",
"ss": [
{
"name": "pourush",
"age": "25"
},
{
"name": "Mak",
"age": "25"
}
]
},
{
"b": "3",
"ss": [
{
"name": "James",
"age": "19"
},
{
"name": "shaun",
"age": "20"
}
]
}
]
console.log(list.map(function(m) { return m.ss;} ).flat())