Tagged Questions
11
votes
9answers
2k views
Is there a more succinct way of writing this simple JavaScript loop?
This seems a bit redundant to me, but I'm not sure of how else I might be able to write this. Normally I'd use a switch statement, but I don't think that'll work ...