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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just like
for
loops started to disappear after ES6 (or ES5?) brought in.map
,.reduce
,.filter
, and.forEach
, I think theswitch
statement doesn't quite fit in to modern JS.