function boolean( x, searchElement, fromIndex ) {
	var view;
	var v;
	var i;
	if ( !isBoolean( searchElement ) ) {
		return -1;
	}
	view = reinterpretBoolean( x, 0 );
	v = ( searchElement ) ? 1 : 0;
	for ( i = fromIndex; i >= 0; i-- ) {
		if ( view[ i ] === v ) {
			return i;
		}
	}
	return -1;
}
Returns the index of the last element which equals a provided search element according to the same value algorithm.

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

@example
var BooleanArray = require( '@stdlib/array/bool' );

var x = new BooleanArray( [ true, false, true, false, true ] );

var idx = boolean( x, true, 3 );
// returns 2