// 输入
const data = [
["root", "system", "synchronization-logs"],
["root", "system", "synchronization-configs"],
["root", "system"],
["root", "configs"],
["root"],
];
// 期望输出
const output = [
["root", "system", "synchronization-logs"],
["root", "system", "synchronization-configs"],
["root", "configs"],
]
小弟在线求指导