News for hackers. Stuff that matters.
Re:Don't Use Booleans by CharlieDigital on Tuesday July 09, 2024 @08:23AM (#40915246)

    but in the code I've written so far trying to construct the the enum object almost always consisted of using a function to validate anyway
It's exactly this problem and it's not obvious for someone choosing an enum type that the underlying implementation in JS is an object indexer.

There are no comments on this comment yet.