举例来说吧:
下面数组处理成,将peojectId有值的都去掉。
let arr = [{
name: "小美",
projectId: null,
children: [{
name: "小白",
projectId: null,
children: [{
name: "小黄",
children: [],
projectId: 2,
}, {
name: "小花",
children: [],
projectId: null,