I want to send the values in the DiscountPrice array to the setOrderDETAIL function as parameters. Since I call the function in .map, it calls as many functions as the item number, but I want to run this function 1 time. So I want to send the values inside the DiscountPrice array to this.setOrderDETAIL function.
DiscountPrice.map((price)=>{
this.UserCart.map((item)=>{
return this.setOrderDETAIL(item.Quantity, price, item.Quantity,item.ProductId,rsp.Order_Id);
})
})