Re:Using the switch(true) pattern in JavaScript
by alerighi on Monday April 12, 2021 @07:10PM
(#26786293)
That code is ugly anyway, something I would have wrote in middle school... why not:
Or, since I assume is JavaScript, just:
[ Parent
| on HN ]