Transform data from flat into a nested tree structure based on value of indent attribute

后端 未结 0 1183
暖寄归人
暖寄归人 2021-01-23 22:27

We have an array similar to this:

const pages= [
{
  "name": "Hello World",
  "code": "hello-world",
  "indent":         


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