DEV Community

loading...

Discussion on: How to write cleaner functions.

Collapse
genspirit profile image
Genspirit

Personally, I'm a fan of just using a Map instead of a switch. For me switch statements just seem overly verbose and less intuitive.