Skip to content

Tree to Array

Enter the data and parameters that meet the rules to see the effect of tree to array conversion. The addFields field with callback functions cannot be demonstrated here.

数据:
参数:
输出:
[
  {
    "id": "1",
    "parentId": ""
  },
  {
    "id": "2",
    "parentId": "1"
  },
  {
    "id": "3",
    "parentId": "1"
  },
  {
    "id": "4",
    "parentId": "3"
  }
]

Released under the MIT License.