DEV Community

Discussion on: We don't need a ternary operator

Collapse
 
gmartigny profile image
Guillaume Martigny

Indeed, that's part of my point. You can do without ternary with some trickery, but best solution is to split it into real if else over multiple lines.