javascript array find highest value of array of objects by key

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

Also in JavaScript: