3 ms·
You could of course wrap the switch in a self-invoking function: {() => { switch... }()} Sometimes an inline switch is indeed the clearest code. The closest JS
by hombre_fatal 5y ago
You could of course wrap the switch in a self-invoking function: {() => { switch... }()}
Sometimes an inline switch is indeed the clearest code. The closest JS has is the do-expression proposal: { do { switch... }}