DEV Community

Discussion on: Why I prefer objects over switch statements

Collapse
 
chiangs profile image
Stephen Chiang

I tend to use this method for very predictable objects that otherwise would have been unnecessarily long switch statements. Good stuff