News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by lhorie on Monday April 12, 2021 @12:25PM (#26781332)
It's a stage 2 proposal, which technically can be used today via babel[0] (though personally, I don't recommend using stuff below stage 4)

[0] https://babeljs.io/docs/en/babel-plugin-proposal-throw-expre...

There are no comments on this comment yet.