Answers for "array with objects read element with the lowest value"

0

array with objects read element with the lowest value

myArray.reduce(function(prev, curr) {
    return prev.Cost < curr.Cost ? prev : curr;
});
Posted by: Guest on May-15-2020

Code answers related to "array with objects read element with the lowest value"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language