I know a similar question has been asked here: Finding the max value of an attribute in an array of objects, but with that method there is no way to return the entire object con
If A is the array of objects.
function return_Max_Object(A) { var M = -Infinity; var Max_index = -1; for(var i =0;iM) { M = A[i].value; Max_index = i; } } return A[Max_index]; }