code: function mapExec(array, func) {
    for (var i = 0; i < array.length; ++i) {
      func.call(this, array[i], i);
    }
  }
docs: Applies the given function to each element of the array, preserving this, and passing the index.