Check variable equality against a list of values October 22, 2022 by Tarik You could use an array and indexOf: if ([1,3,12].indexOf(foo) > -1)