title: Get max values from each array of objects
body: <p>So I have data like this:</p>
  
  <pre><code>data = [
           [{a: "b", value: 12}, {a: "bb", value: 39}, {a: "bb", value: 150}],
           [{a: "c", value: 15}, {a: "cc", value: 83}, {a: "ccc", value: 12}],
           [{a: "d", value: 55}, {a: "dd", value: 9}, {a: "dd", value: 1}]
         ]
  </code></pre>
  
  <p>I want to get max values of value in each array of objects. So the result should be like this:</p>
  
  <pre><code>maxValues = [150, 83, 55]
  </code></pre>
  
  <p>Right now my code is:</p>
  
  <pre><code>let maxValues = []
  let tmp;
  let highest = Number.NEGATIVE_INFINITY;
  
  data.map((eachArr, index) =&gt; {
    for(let i = eachArr.length -1; i &gt;= 0; i--){
      tmp = eachArr[i].value;
      if(tmp &gt; highest) highest = tmp;
    }
    maxValues.push(highest)
  })
  </code></pre>
  
  <p>and the result is </p>
  
  <pre><code>maxValues = [150, 150, 150]
  </code></pre>
  
  <p>How can I achieve this?</p>