Bookmark: Using the Switch(true) Pattern in JavaScript - Blog by Seán Barry

Explaining the Switch(true) pattern. I use it front time to time