function indexOf(array, value, fromIndex) {
    var index = toInteger(fromIndex),
        length = (array = Object(array)).length >>> 0;

    index = (index < 0 ? max(0, length + index) : index) - 1;
    while (++index < length) {
      if (index in array && value === array[index]) {
        return index;
      }
    }
    return -1;
  }
A generic `Array#indexOf` like method.

@static
@memberOf Benchmark
@param {Array} array The array to iterate over.
@param {Mixed} value The value to search for.
@param {Number} [fromIndex=0] The index to start searching from.
@returns {Number} The index of the matched value or `-1`.