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

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

#reduce #typescript

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension