Create a nested Object from simple Array

前端 未结 0 800

I\'m trying to create a deep nested JS Object out of a simple array. The tricky part is that the next item in the array should always be added to the previous one.

As

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