How To Deal With Unexpected Use Of Comma Operator No-sequences Eslint Warning
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)
Solution 1:
Your return
statement in the .reduce
callback can be written as
r.count += +o.amount;
return r;
That does exactly the same thing, but it should make ESLint happy.
Post a Comment for "How To Deal With Unexpected Use Of Comma Operator No-sequences Eslint Warning"