Is there a better way to write the following conditional in javascript?
if ( value == 1 || value == 16 || value == -500 || value == 42.42 || value == \'somet
In an effort to make yet another way of doing it...
if (/^(1|16|-500|42.42|something)$/.test(value)) { // blah blah blah }
No need to extend array prototypes or anything, just use a quick regexp to test the value!