DEV Community

Discussion on: My Top 5 JavaScript Tips & Tricks for Writing Cleaner Code

Collapse
 
crayoncode profile image
crayoncode

Good tips. I like to wrap my enums in an Object.freeze() call to prevent unwanted mutation of the values.