Using the Switch(true) Pattern in JavaScript | Hacker News