this post was submitted on 11 Dec 2023
29 points (78.4% liked)
JavaScript
1975 readers
8 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you can use any of the jetBrains IDE it can rewrite it to if/else with a few clicks (or [alt] +[return])
Ah that would be helpful. Gotta try that the next time I encounter such a monstrosity.