title: Returning a tuple in Javascript
body: <p>I have an array of pokemon objects which have a Max and Min height (see snapshot below) and I need to return the average minimum and maximum height for all pokemon in the form of a tuple</p>
  <pre><code>const allPokemon = [
    {
      Height: {
        Minimum: '0.61m',
        Maximum: '0.79m',
      },
    },
  ];
  </code></pre>
  <p>I need to use HOFs so I was thinking to do something like this for both Maximum and Minimum height:</p>
  <pre><code>allPokemon.reduce((acc, cur) =&gt; acc + parseInt(cur.Height.Maximum), 0) / allPokemon.length;
  allPokemon.reduce((acc, cur) =&gt; acc + parseInt(cur.Height.Minimum), 0) / allPokemon.length;
  </code></pre>
  <p>but I'm not sure how to return the two values in the form of a tuple (create empty array and push the values in? Concat method?)</p>
  <p>Any help would be much appreciated.</p>