title: js if any value in array is under or over value
body: <p>say you have (any amount) values in an array and you want to see if any of them is over (lower amount) and under higher amount, how would you do that?</p>
  
  <p>answer without doing a for loop or any lengthy code.</p>
  
  <p>Maybe something like:</p>
  
  <pre><code>var havingParty = false;
  if ((theArrayWithValuesIn &gt; 10) &amp;&amp; (theArrayWithValuesIn &lt; 100)) {
      havingParty = true;
  } else {
      havingParty = false;
  }
  </code></pre>
  
  <p>would work.</p>
  
  <p>Please note: <code>x</code> and <code>y</code>, collision detection, compact code.</p>