js object max code example
Example 1: find max of array of objects key
Math.max.apply(Math, array.map(function(o) { return o.y; }))
Example 2: math.max in javascript
Math.max() function returns the largest of the zero or more numbers given as input parameters.
Math.max(1,10,100); // return 100