DEV Community

Discussion on: If not ternary operator then what?

Collapse
 
devdufutur profile image
Rudy Nappée • Edited

You can also use Boolean(val) instead of !!val. It may be more readable.