DEV Community

Discussion on: Avoid use IF on our JS scripts

Collapse
jankowskij profile image
JJankowski

I totally agree that nested ternaries are a pain to read.

Also, the itemDropped sample looks very "magical" to a person not familiar with such paradigm.

Collapse
damxipo profile image
Damian Cipolat Author

Well the idea is to provide reason to star going deeper in JS.