Stop Committing Debug-Only Variables: Use Your Debugger Instead
I have seen this kind of function more times than I can count: function calculateTotal(values: readonly number[]): number { const result = values.reduce( (total, value) => total + value, 0, ); return result; } …