by hajile · 3y ago · 0 comments
It would be great if we had expression if..else too (instead of just the tertiary operator)
There's a proposal for precisely that. Unfortunately, only Stage 1 though.
https://github.com/tc39/proposal-do-expressions