Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array find highest value of array of objects by key

Math.max.apply(Math, array.map(function(o) { return o.y; }))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #array #find #highest #array #objects #key
ADD COMMENT
Topic
Name
6+5 =