javascript/selenium-core/xpath/util.js
function mapExpr(array, func) {
  var ret = [];
  for (var i = 0; i < array.length; ++i) {
    ret.push(func(array[i]));
  }
  return ret;
}
function mapExpr(array, func) {
  var ret = [];
  for (var i = 0; i < array.length; ++i) {
    ret.push(func(array[i]));
  }
  return ret;
}
function mapExpr ( array , func ) { var ret = [ ] ; for ( var i = 0 ; i < array . length ; ++ i ) { ret . push ( func ( array [ i ] ) ) ; } return ret ; }
Returns an array that contains the return value of the given function applied to every element of the input array.
Returns an array that contains the return value of the given function applied to every element of the input array .