DEV Community

Discussion on: Nested Conditional Operators

Collapse
 
danjfletcher profile image
Dan Fletcher

Personally, I find chaining ternary expressions like this far more readable than a bunch of if statements :) There's actually a great article on this subject worth reading: medium.com/javascript-scene/nested...