i'm trying to get the total of all my products in my list.
this.totalValue = this.items.filter((item) => item.qtyvalue)
.map((item) => item.qtyvalue)
.reduce((sum, current) => sum + current)
This is almost working as it gives me 650.00110.0030175.0050.00
But i want the numbers added together, how do i do this?
kind regards
this.totalValue = this.items.reduce((sum, item) => sum + +item.qtyvalue, 0)