Refactor

  • 31 March 2025

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.

Read more