title: Finding the max value of an attribute in an array of objects
body: <p>I'm looking for a really quick, clean and efficient way to get the max &quot;y&quot; value in the following JSON slice:</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;x&quot;: &quot;8/11/2009&quot;,
      &quot;y&quot;: 0.026572007
    },
    {
      &quot;x&quot;: &quot;8/12/2009&quot;,
      &quot;y&quot;: 0.025057454
    },
    {
      &quot;x&quot;: &quot;8/13/2009&quot;,
      &quot;y&quot;: 0.024530916
    },
    {
      &quot;x&quot;: &quot;8/14/2009&quot;,
      &quot;y&quot;: 0.031004457
    }
  ]
  </code></pre>
  <p>Is a for-loop the only way to go about it? I'm keen on somehow using <code>Math.max</code>.</p>