DEV Community

Discussion on: Switch statements in javascript – How to refactor?

Collapse
 
ajayv1 profile image
Ajay Kumar Verma

Yes @jonrandy As array is also an object in javascript so it would also work the same. Thanks for the suggestion.