Underscore to flatten nested array of parent/child objects

后端 未结 0 1781
误落风尘
误落风尘 2020-12-15 23:55

I have an array of objects, where each object has a \"children\" property (example data below). I want to flatten parents/children into a single array, with each parent imme

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