3 ms·
I’m not sure a switch statement against a string is a great solution either although to some extent you are restrained by JavaScripts limitations.
by tonyedgecombe 7y ago
I’m not sure a switch statement against a string is a great solution either although to some extent you are restrained by JavaScripts limitations.