▲ Nested Ternaries are Great at medium.com▼8 up and 2 down, posted by ericelliott 2486 days ago 4 comments
ericelliott 2485 days ago. link parent 4 points ▲ ▼Yeah, that defeats the point of ternary expressions. This should use if statements instead, to clarify the mutation intent. If you're not capturing/returning the value of a ternary expression, you're missing the point of ternaries.