Javascript filter() function to filter parent elements

后端 未结 0 1864
温柔的废话
温柔的废话 2021-02-19 22:42

I have a list of nested items in the JSON object. I have to filter only root nodes (parent).

The below is the JSON object.

0:
node: {__typename: "Item         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题