DEV Community

loading...

Discussion on: Keeping Your Code Simple

Collapse
fc250152 profile image
Nando

imho this solution is cleaner only for guys not used to ternary expressions, otherwise the first proposed solution is the better one; I don't think that the "if" solution does add any bit of clarity.