AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Enums in JavaScript
I used to be on the side of yeah enums totally fine I'm more than happy to use enums in fact You'll still find enums in the level of code base because I'm not gonna refactor it. So I don't love your approach of just using an object and as const Uh, I think I'll just do that from now on because I do really like being able to Do comparisons and not use strings Yeah, you know, I I like that. It worked fine for me but yeah, I was under the Incorrect assumption that enums would eventually make their way into JavaScript But the more you look into it there's no proposal. There's not a stage zero