How to condense an array of objects

后端 未结 0 944
孤街浪徒
孤街浪徒 2021-02-06 00:16

I have an array of orders below and would like to condense it by name and then have an array of all the items that person has ordered

const orders = [
  { name: \         


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