DEV Community

Discussion on: Avoid use IF on our JS scripts

Collapse
 
metalmikester profile image
Michel Renaud

I've had to deal with "overdone" uses of the ternary operator. I was not pleased.

Collapse
 
damxipo profile image
Damian Cipolat

The point of replacing the elseif with ternary nesting is hard to read. Another way could be to use a single level of if. but the idea of ​​the article was to program without using a single if. I am open to see other devs as they would raise this.