title: Shorten JS if or statement
body: <p>Is there anyway to shorten something like this in Javascript: <code>if (x == 1 || x == 2 || x == 3 || x == 4)</code> to something like if <code>(x == (1 || 2 || 3 || 4))</code> ?</p>