title: What is the equivalent of Python any() and all() functions in JavaScript?
body: <p>Python has built in functions <code>any()</code> and <code>all()</code>, which are applied on a list (array in JavaScript) as following-</p>
  <ul>
  <li><code>any()</code>: Return <code>True</code> if any element of the iterable is true. If the iterable is empty, return <code>False</code>.</li>
  <li><code>all()</code>: Return <code>True</code> if all elements of the iterable are true (or if the iterable is empty).</li>
  </ul>
  <p>We can create our customized functions for above, but please let me know if there any equivalent built-in functions available in JavaScript.</p>