title: Using javascript reduce to filter an array of objects, to find the lowest calculated stats
body: <p>So, I wrote this for loop</p>
  
  <pre><code>if (specimins.length &gt; 0) {
      var max = specimins[0]
      for (var x = 1; x &lt; specimins.length; x++) {
          if ((max.weight+max.height) &gt; (specimins[x].weight+specimins[x].height)) {
              max = specimins[x]
          }
      }
      specimins = [max]
  }
  </code></pre>
  
  <p>However, it is quite an eyesore. So basically, it is going over an array of of specimens to find the lowest total amount calculated weight + height. Is there are a good way to have this use array.reduce()? I have tried some attempts but most of it never works for me.</p>
  
  <p>Any help is a appreciated. Thank you!</p>