title: Array search in javascript
body: <p>I have an array in javascript and a variable as follows:</p>
  
  <pre><code>var numArr = ["one", "two", "three"];
  var searchNum = "four";
  </code></pre>
  
  <p>I want to search "four" in numArr and if not present then execute some statements... as in </p>
  
  <pre><code>if (searchNum not in numArr)
  {
      // do this
  }
  </code></pre>
  
  <p>Does javascript have any function which could search in any array and return true or false without me writing a whole lot of search code. </p>