const deepByIdSearchName = (list, id, key) => {
if (list.length) {
for (let i = 0; i < list.length; i++) {
if (list[i].id === id) {
return list[i][key];
}
if (list[i].children && list[i].children) {
let next = deepByIdSearchName(list[i].children, id, key);
if (next) {
return next;
}
}
}
}
return;
};