Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

array with objects read element with the lowest value

myArray.reduce(function(prev, curr) {
    return prev.Cost < curr.Cost ? prev : curr;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #objects #read #element #lowest
ADD COMMENT
Topic
Name
3+1 =