Hello, I have a simple reduce method on my array but for some reason, it just returns NaN
instead of calculating the values of each element.
Here’s the code:
let ab = [{
value: 1111111111,
},{
value: 100000,
},{
value: 35453454545,
}]
console.log(ab.reduce((a,b)=>a.value+b.value))