title: find max value of a child object
body: <p>What would be an elegant way to find the max value of a child object in javascript?</p>
  
  <p>Example:</p>
  
  <p>find the max quantity value of this object (here shown as json):</p>
  
  <pre><code>{"density":[
    {"price":1.22837, "quantity":48201},
    {"price":1.39837, "quantity":28201},
    {"price":1.40107, "quantity":127011},
    {"price":1.5174,  "quantity":75221},
    {"price":1.60600, "quantity":53271}
  ]}
  </code></pre>
  
  <p>thank you for any advice!</p>
  
  <p>PS: just to clarify: of course i could loop through, but i thought there would be a more elegant way ...</p>