Tim Williams
Feb 22, 2022

I can't think of a single valid real-life example of where I would put information about an array of objects in an object literal just to avoid a switch statement. This article would be much better if it included an example of an actual way this is being used where it makes sense.

Tim Williams
Tim Williams

Written by Tim Williams

I am a Web Developer passionate about new technologies, as well as time tested best practices (here’s looking at you Uncle Bob).

Responses (3)