DEV Community

Discussion on: I've never become overly convinced that switch statements are that much cleaner than `if else if else if else if else`

Collapse
 
lysofdev profile image
Esteban Hernández

Just like for loops started to disappear after ES6 (or ES5?) brought in .map, .reduce, .filter, and .forEach, I think the switch statement doesn't quite fit in to modern JS.