Y
Hacker News
new
|
ask
|
show
|
jobs
by
duckmysick
76 days ago
I'm not that familiar with TypeScript/JavaScript - what would be a proper way of handling complex logic? Switch statements? Decision tables?
1 comments
catlifeonmars
76 days ago
Here I think the logic is unnecessarily complex. isQuoted is doing work that is implicit in the token.
link