javascript/selenium-core/xpath/util.js
function reverseInplace(array) {
  for (var i = 0; i < array.length / 2; ++i) {
    var h = array[i];
    var ii = array.length - i - 1;
    array[i] = array[ii];
    array[ii] = h;
  }
}
function reverseInplace(array) {
  for (var i = 0; i < array.length / 2; ++i) {
    var h = array[i];
    var ii = array.length - i - 1;
    array[i] = array[ii];
    array[ii] = h;
  }
}
function reverseInplace ( array ) { for ( var i = 0 ; i < array . length / 2 ; ++ i ) { var h = array [ i ] ; var ii = array . length - i - 1 ; array [ i ] = array [ ii ] ; array [ ii ] = h ; } }
Reverses the given array in place.
Reverses the given array in place .