min max element of objects of array javascript code example
Example 1: find max of array of objects key
Math.max.apply(Math, array.map(function(o) { return o.y; }))
Example 2: array with objects read element with the lowest value
myArray.reduce(function(prev, curr) {
return prev.Cost < curr.Cost ? prev : curr;
});