title: Find element in Javascript Array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/237104/javascript-array-containsobj">Javascript - array.contains(obj)</a>  </p>
  </blockquote>
  
  
  
  <p>What's wrong with this:</p>
  
  <pre><code>var zipCodes =(['90001','90002','90003']);
  </code></pre>
  
  <p>Test if the value exists in the array <code>zipCodes</code></p>
  
  <pre><code>if('90001' in zipCodes) {
    alert('True');
  };
  </code></pre>