DEV Community

Discussion on: Replace your switch statement and multiple "if and else", using Object Literals - [en-US].

Collapse
 
obsessiveprogrammer profile image
Tom Bonanno

Very cool. Thanks for sharing. One issue I can see that you should be aware of is that you won't get an accurate code coverage result for testing, as it will not be seen as branches.

Collapse
 
tauantcamargo profile image
Tauan Tathiell

Thanks for your review man .. i'll update this article or create another to update with new things