DEV Community

Discussion on: ✔||🤢 Commit or Vomit | Switch(true)

Collapse
 
jmdejager profile image
🐤🥇 Jasper de Jager

Your function behaves slightly different than the example, bit this just might prove your point of the switch not being readable enough 😅

The difference is that in the switch an angular experienced used doesn't have to start immediately.

Collapse
 
asdftd profile image
Milebroke

You are definitely right :D Well in that case I wouldn't mind the right if else combo either