DEV Community

Discussion on: Why switch is better than if-else

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

Defensive programming is a must. It's great if you can ensure coverage even with if-else in TypeScript.