finding min value from array of object 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: Obtain smallest value from array of objects in Javascript
myArray.sort(function (a, b) {
return a.Cost - b.Cost
})
var min = myArray[0],
max = myArray[myArray.length - 1]