function indexOf( arr, start, end, value ) {
	var i;

	if ( end >= arr.length ) {
		end = arr.length - 1;
	}
	for ( i = start; i <= end; i++ ) {
		if ( arr[ i ] === value ) {
			return i;
		}
	}
	return -1;
}
Returns the index of the first occurrence of a value in a provided array.

@private
@param {Array} arr - input array
@param {NonNegativeInteger} start - starting search index (inclusive)
@param {NonNegativeInteger} end - ending search index (inclusive)
@param {*} value - search value
@returns {integer} index of the first occurrence