title: Boolean algebra in javascript
body: <p>Is there any way to use boolean algebra in JS?</p>
  
  <p>Eg I would like to loop through an array containing true &amp; false, and simplify it down to either only true, or false.</p>
  
  <p>Doing it with boolean algebra seems like an elegant way to do it...</p>
  
  <pre><code>[true,true,true,true] //would like to do a comparison that lets me  
  //simply add the previous value to  the current iteration of a loop
  // and have this return true
  
  [false,true,true,true]//this on the other hand should return false
  </code></pre>