How To: if statements in Javascript Switch case?
Original Post and more here
A situation came up where I had to check for keyboard events and I wanted to include WASD as well as the arrow keys.
I decided on a switch statement but ended up having 8 cases and only 4 outcomes that I actually wanted to...
calvin.hashnode.dev2 min read