Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
ducharmdev
· 5y ago · 0 comments
Although I don't mind switch statements, I was thinking similarly about using early returns instead. But this is where switch/match expressions like in Rust or C# would really shine; it's too bad JavaScript/Typescript doesn't support them though.
Comments
No comments yet.
Better HN