Short Hand Techniques for Javascript Developers
5. Multiple OR Conditions:
You could use an array instead for multiple OR conditions. I there are only a few possibilities, use the long-hand one. But if there are more may be 10, use Array.indexOf()
Download the Study24x7 App, so you can connect and collaborate.