How to convert flat array containing a child “path” array into a nested array of objects based on the path?

前端 未结 0 1989
鱼传尺愫
鱼传尺愫 2021-02-18 18:17

I have an array of objects, each containing a path property which holds the value of "paths" to which I\'d like to map the array elements to.

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