Math Max Js Array
Math Max Js Array . No, the maxheight should be 70 and the minheight: Check out the examples below in which i am trying to get the highest number using math.max() method. 35 Math Min Javascript Array Javascript Answer from shopnflgamepass.blogspot.com You should use elementsarray [i].firstelementchild.offsetheight for getting offsetheight of img. If you're concerned that your array is too large, use the above array.reduce() + math.max() approach to find the max value in an array. Call the math.max method, passing it the array of ids, prefixed by the spread operator as a parameter.