javascript/selenium-core/xpath/util.js
function mapExec(array, func) {
  for (var i = 0; i < array.length; ++i) {
    func.call(this, array[i], i);
  }
}
function mapExec(array, func) {
  for (var i = 0; i < array.length; ++i) {
    func.call(this, array[i], i);
  }
}
function mapExec ( array , func ) { for ( var i = 0 ; i < array . length ; ++ i ) { func . call ( this , array [ i ] , i ) ; } }
Applies the given function to each element of the array, preserving this, and passing the index.
Applies the given function to each element of the array preserving this and passing the index .