title: How do i use Math.max with an array of objects?
body: <p>I want to select the biggest number in an array of objects,
  so for example, I want to get the <code>x</code> property that holds the largest number (in this example, <code>maximum</code> should be <code>200</code>):</p>
  
  <pre><code>var myArr = [{x:100,y:200},{x:200,y:500}];
  
  //does not work:
  var maximum = Math.max.apply(Math,myArr.x);
  </code></pre>