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.