let arr = [
{
name: "tom",
children: [
{name: "tomson1", age: 11},
{name: "tomson2", age: 12}
]
},
{
name: "tony",
children: [
{name: "tonyon1", age: 13},
{name: "tonyon2", age: 14},
{name: "tonyon3", age: 15}
]
},
{
name: "mike",
children: [
{name: "mikeson1", age: 16},
{name: "mikeson2", age: 17}
]
}
]
let list = [{name: "tom"},{name: "tony"}, {name: "tonyon1"}]
arrlistlistlistsonchildren
```
[
{
name: "tom"
},
{
name: "tony",
children: [
{name: "tonyon1", age: 13}
]
}
]
```