title: Find the sum of values inside a nested array
body: <p>I have a nested array that looks like this:  </p>
  
  <pre><code>let scores = [  
  [[2, 1, 0], [2, 1, 0]],  
  [[4, 2, 0]],  
  [[4, 2, 0]],  
  [[4, 2, 0],[2, 1, 0]]  
  ]  
  </code></pre>
  
  <p>What I'm trying to do is get the highest value of each array (and sum the highest values in arrays that contain more than one array, ie. inside the first array, [[2,1,0],[2,1,0]], I need to sum the highest values of each array which in this case is 2+2.)
  My thought is to shift() the first value of each array OR slice()/remove the lower values so my array looks like this:<br>
  <code>newScores = [[[2],[2]], [4], [4], [[4],[2]]]</code>  </p>
  
  <p>Ultimately, my desired output is: <code>output = [[4], [4], [4], [6]]</code>  </p>
  
  <p>Hope someone can provide some direction! Thanks!</p>