Sorting array by date and increment quantity on duplicate item

前端 未结 0 378
说谎
说谎 2021-01-14 20:36

So I have this kind of data (simplified version):

const itemList = [
{itemDetail: {date: \'2020-12-30\' , quantity: 5, productType: \'shirt\'  }},
{itemDetail         


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