GetTotal

PHOTO EMBED

Sun Sep 12 2021 09:00:05 GMT+0000 (UTC)

Saved by @EdenPark #reduce #typescript

var total = value.reduce((prev, next)=>{
  	return prev +(next.quantity * this.productMap(next.productId).price)
},0 )
content_copyCOPY