You could use a recursive approach by checking the name and return a new data structure with only the nodes to the wanted object. function find({ tree = [], ...
確定! 回上一頁