function indexOf( x, searchElement, fromIndex ) {
	if ( hasMethod( x, 'indexOf' ) ) {
		return x.indexOf( searchElement, fromIndex );
	}
	if ( fromIndex < 0 ) {
		fromIndex += x.length;
		if ( fromIndex < 0 ) {
			fromIndex = 0;
		}
	}
	if ( isAccessorArray( x ) ) {
		return accessors( x, searchElement, fromIndex );
	}
	return internal( x, searchElement, fromIndex );
}
Returns the index of the first element which equals a provided search element.

## Notes

-   If unable to find an element which equals a provided search element, the function returns `-1`.

@param {Collection} x - input array
@param {*} searchElement - search element
@param {integer} fromIndex - starting index (inclusive)
@returns {integer} index

@example
var x = [ 1, 2, 3, 4 ];

var idx = indexOf( x, 2, 0 );
// returns 1

@example
var Int32Array = require( '@stdlib/array/int32' );

var x = new Int32Array( [ 1, 2, 3, 4 ] );

var idx = indexOf( x, 2, 0 );
// returns 1