title: Find the min/max element of an array in JavaScript
body: <p>How can I easily obtain the min or max element of a JavaScript array?</p>
  <p>Example pseudocode:</p>
  <pre><code>let array = [100, 0, 50]
  
  array.min() //=&gt; 0
  array.max() //=&gt; 100
  </code></pre>