Javascript - refactor array - array reduce

后端 未结 0 365

What is the best way to refactor(ise) an array / array of objects ? I was thinking of using array.reduce, but could not figure out a solution.

for example, transform

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