gtap-dev / javascript

JavaScript Style Guide
MIT License
0 stars 0 forks source link

Relax parameter mutation rule #27

Open mjomble opened 2 months ago

mjomble commented 2 months ago

NB! This is different from parameter reassignment - there's a separate rule for that (7.14)

For mutation, it seems to me like some exceptions are ok.

I've updated the examples accordingly. The previous "good" example was rather bizarre 😆