Refactor
Changing a switch statement to an object-like structure
A few days ago, I saw a post on LinkedIn about a cool JavaScript refactor, and I wondered if I could apply it to one of my TypeScript projects.
A few days ago, I saw a post on LinkedIn about a cool JavaScript refactor, and I wondered if I could apply it to one of my TypeScript projects.