logoalt Hacker News

duckmysicktoday at 11:27 AM2 repliesview on HN

I'm not that familiar with TypeScript/JavaScript - what would be a proper way of handling complex logic? Switch statements? Decision tables?


Replies

catlifeonmarstoday at 11:56 AM

Here I think the logic is unnecessarily complex. isQuoted is doing work that is implicit in the token.