As a result, I got it [object Object]9778177, I tried to parse this value, but nothing helps, something is wrong.
let x = [{
"total_count": 7
}, {
"total_count": 9
}, {
"total_count": 778
}, {
"total_count": 177
}]
let sum = x.reduce((accum, obj) => {
return accum + obj.total_count
})
console.log(sum)
source
share