title: how can I compare a string with several values?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/237104/array-containsobj-in-javascript">array.contains(obj) in JavaScript</a>  </p>
  </blockquote>
  
  
  
  <p>Something like:</p>
  
  <pre><code>if (mystring == "a" || mystring == "b" || mystring =="c")
  </code></pre>
  
  <p>I was hopping to do:</p>
  
  <pre><code>if (mystring in ("a", "b", "c"))
  </code></pre>
  
  <p>is it possible?</p>