How to find the object with the highest property in an array of objects in javascript code example
Example: javascript array find highest value of array of objects by key
Math.max.apply(Math, array.map(function(o) { return o.y; }))
Math.max.apply(Math, array.map(function(o) { return o.y; }))