Rio Rio - 6 months ago 22
Javascript Question

Finding the max value of an attribute in an array of objects

I'm looking for a really quick, clean and efficient way to get the max "y" value in the following JSON slice:


Is a for-loop the only way to go about it? I'm keen on somehow using

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