DEV Community

Discussion on: Avoid use IF on our JS scripts

Collapse
 
ezgif_com profile image
ezgif.com • Edited

TBH I think all of your examples are more readable with ifs, especially the nested ternaries. I would hate to see that in code I have to work with.

Ifs are very easy to read and understand, there is no performance problems with them. What do you gain from avoiding ifs?