switch(true) just got a whole lot better in TS 5.3. It's gone from basically unusable in TS to being a viable alternative to long if statements.
Both of them have a fallthrough 🥲
Lucky Jain
1y
Great. Gonna use it
Daniel T.
1y
Quite interesting and it's great that we have this option also, but I still prefer the `if` pattern more (at least for now). Thanks Mateusz Burzyński!
Matt Pocock, what font family is this?
Krystian Z.
1y
Nice. 🤗
Makes sense! Good one Matt.
Tech Lead and Software Dev Content Creator.
1yV nice. We had to use as everywhere in our project inside those cases. Will it work with instanceof as well?