DEV Community

Discussion on: Avoid use IF on our JS scripts

Collapse
damxipo profile image
Damian Cipolat Author

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.