JavaScript: Checking If A Given Value Is One Of Many
Suppose you have have a variable language and you want to decide which country it is generally spoken in. Traditional approach would be to use disjunction of multiple comparisons:
[sourcecode language=”javascript”]
if (language ===…