This question is starting to attract new users who contribute nothing more than "use a
switch statement" as an answer. One of these answers is also a copy cat of previous answers. There really is no need for these additional answers, especially because this is already mentioned and demonstrated in some top answers. If those new users have nothing new to contribute, then I don't think those answers should remain. Even with the downvotes, they're just creating noise.
If any 3500+ users agree, someone please consider protecting that question. If those low-quality answers need not remain, then trusted users (4K+) could cast delete votes. On the other hand, having enough answers from new users deleted will automatically cause the Community User to protect the question. I've also flagged a moderator in case further action here is uncertain.