DEV Community

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

Collapse
 
ajayv1 profile image
Ajay Kumar Verma

Yes Victor, As array is also an object in javascript so it would also work the same. Thanks for the suggestion. I'll update the code.