How to check whether a given string is already present in an array or list in JavaScript?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/237104/javascript-array-containsobj">Javascript - array.contains(obj)</a><br>
  <a href="http://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-javascript-array">Best way to find an item in a JavaScript Array ?</a>  </p>
</blockquote>



<p>I want to check, for example, for the word "the" in a list or map. Is there is any kind of built in function for this?</p>
