Discussion about this post

User's avatar
Pavel Romanov's avatar

That's the way to go, I don't remember the last time I used enum

One extra step that I do for such objects is `Object.freeze` to make them truly immutable

Expand full comment

No posts