DEV Community

Discussion on: A New Coding Style for Switch Statements in JavaScript/TypeScript

Collapse
 
suppayami profile image
Cuong Nguyen

Use if and return, problem solved.