title: Is there an equivalent to Python's all function in JavaScript or jQuery?
body: <p>In Python the <code>all()</code> functions tests if all values in a list are true. For example, I can write</p>
  
  <pre><code>if all(x &lt; 5 for x in [1, 2, 3, 4]):
      print("This always happens")
  else:
      print("This never happens")
  </code></pre>
  
  <p>Is there an equivalent function in JavaScript or jQuery?</p>