How to add array of objects inside a Map in Javascript

前端 未结 0 970
庸人自扰
庸人自扰 2020-12-12 07:38

I want a Map where the keys are unique ids and the value will be an array of objects that correspond to the unique id. Example data const exampleData = [ {id: 1, name: "

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