where a lot is going on. I would have chosen the names
acc
,
key
and
vals
, but that is no written rule either. Just pick something that the other people in your team understand. There is no point in writing code that only you can understand (other than keeping your position) and
will result in the "legacy code" that everyone is talking about. If this code was written in my team, it would have failed the code review - keeping aside the fact that we don't write JavaScript. I do agree that at this small code snippet it doesn't make too much of a difference, but imagine a whole backend —
MauriceNino just now