Best way to check each productId in order and if there is same productId add there quantity?

前端 未结 0 1270
温柔的废话
温柔的废话 2020-12-06 16:04

I need a best solution to loop through each order item and if there is two product Id matches then add there quantity:

 var order = [{`orderId:"123456789         


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