I am getting an eslint warning for unexpected use of comma. I found this answer but it does not match my issue.
This is my code:
const reduced = _.map(_.keys(grouped), function(e) {
return _.reduce(grouped[e], function(r, o) {
return r.count += +o.amount, r
}, {price: parseFloat(e), count: 0, amount: e.amount})
})
How do I get rid of the warning? Thank you very much.