Highest value in a for loop / array?

How would I go about returning which object in an has the highest (numerically) of a particular variable? The variables are randomly generated.


objArray = [main.navHead1, main.navHead2, main.navHead3];
for (q=0; q<objArray.length; q++) {
    objArray[q].myVar = Math.random()*800;
}

Thoughs?

Cheers,

-Ryan :beer: