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


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.


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

code of conduct - report abuse