DEV Community

Discussion on: Use an object instead of a switch

Collapse
 
omgimalexis profile image
Alexis Tyler

“Therefore, a switch statement isn't needed at all.”

A switch statement is more performant. But sure.