DEV Community

Discussion on: What do you think about the ternary operator?

Collapse
 
martingbrown profile image
Martin G. Brown

I tend to go a bit further and indent the two expressions:

return
    condition ?
        trueExpression :
        falseExpression;