Check variable equality against a list of values

You could use an array and indexOf:

if ([1,3,12].indexOf(foo) > -1)

Leave a Comment