title: How do you compare a numeric variable to each numeric element in an array in Javascript?
body: <p>If I have a Javascript array filled with say 10 numbers. 
  For example (10,11,12,13,14,15,16,17,18,19)
  And I want to take a variable which has a value of say 20, and check to see whether any
  of the elements in the array are larger than 20.  Because I will be comparing many arrays filled with numbers and will not know what numbers they contain.</p>
  
  <p>How do you take 20 and then get Javascript to test each number in the array to find out if it is larger than 20 or not.  </p>
  
  <p>I know you can say something like:</p>
  
  <pre><code>var x = 20;
  if (  x &gt; myArray[0] &amp;&amp; 
    x &gt; myArray[1]     
  </code></pre>
  
  <p>etc. etc. but that could mean typing out a long list  of element checks. Is there a simple way like check from start index [0] to [10] or something?</p>