title: Test for value in Javascript Array
body: <p>In SQL Server, I could say: </p>
  
  <pre><code>WHERE X IN(1,2)
  </code></pre>
  
  <p>How would you rewrite the following in JavaScript:</p>
  
  <pre><code>if (X==1 || X==2) {}
  </code></pre>