I would check the array.length once and move it into a variable, then process the elements backwards.
Otherwise, you are repeating a function call in every loop to get the length.
For a lot of array elements the difference could be significant.
Geeky fact alert: I don't know if it is the case for PC technology, but on IBM iSeries servers it is also quicker to populate and read an array backwards, due to the way it is stored.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt