title: Find max value in object array
body: <p>I have object that looks like this:</p>
  
  <pre><code>peaks = 
  0: {intervalId: 7, time: 1520290800000, value: 54.95125000000001}
  1: {intervalId: 7, time: 1520377200000, value: 49.01083333333333}
  </code></pre>
  
  <p>and so on.</p>
  
  <p>How do I find <code>peak</code> that has <code>Max</code> value?
  I tried to do it like this</p>
  
  <pre><code>this.loadPeak = peaks.map(a =&gt; Math.max(a.value));
  </code></pre>
  
  <p>but I just got bunch of peaks array with <code>value</code> (instead of all intervalId, time, value) and not the max value. </p>
  
  <p>**Thank you so much for everyone, every solution was working, sadly can't accept all. **</p>