DEV Community

Discussion on: If not ternary operator then what?

Collapse
 
andreidascalu profile image
Andrei Dascalu

If You need a Boolean evaluation, there is definitely no need for ternary operator.

However, there is also = c ? a:b