Sean Barry personal blog
Using the switch(true) pattern in JavaScript
The switch true pattern isn't well known but it is incredibly useful. It's not a JavaScript specific pattern, but I use it in almost every single project.
- Points
- 120
- HN comments
- 145
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringWeb & Frontend2021
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Apr 12, 2021 | Using the switch(true) pattern in JavaScript by seanbarry | 120 | 145 |