javascript array find highest value of array of objects by key
snippet in javascript

javascript array find highest value of array of objects by key

user2478

Math.max.apply(Math, array.map(function(o) { return o.y; }))