Is there a better way to write the following conditional in javascript?
if ( value == 1 || value == 16 || value == -500 || value == 42.42 || value == \'somet
nope, that is the shorthand.
as an alternative, you can do a switch
switch
switch (value) { case 1 : case 16 : case -500 : .... }
which is easier to manage if you need a lot of possible values, but actually your version is shorter anyway :)