@[email protected] to [email protected] • 5 months agoIf you have more than 2 conditions, and do not want to recreate an element with if else statement, what do you do since ternary operations might get too confusing?programming.devimagemessage-square3fedilinkarrow-up19arrow-down10
arrow-up19arrow-down1imageIf you have more than 2 conditions, and do not want to recreate an element with if else statement, what do you do since ternary operations might get too confusing?programming.dev@[email protected] to [email protected] • 5 months agomessage-square3fedilink
minus-square@barsquidlink2•5 months agoIt looks like an enum with calculated properties would be great here.
It looks like an enum with calculated properties would be great here.