Answers for "find the lowest number in an array of objects"

13

javascript array find highest value of array of objects by key

Math.max.apply(Math, array.map(function(o) { return o.y; }))
Posted by: Guest on March-05-2020
1

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]
Posted by: Guest on May-14-2020

Code answers related to "find the lowest number in an array of objects"

Code answers related to "Javascript"

Browse Popular Code Answers by Language