function iterReject( iterator, predicate, thisArg ) {
	var iter;
	var FLG;
	var i;
	if ( !isIteratorLike( iterator ) ) {
		throw new TypeError( format( 'invalid argument. First argument must be an iterator protocol-compliant object. Value: `%s`.', iterator ) );
	}
	if ( !isFunction( predicate ) ) {
		throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', predicate ) );
	}
	i = -1;

	// Create an iterator protocol-compliant object:
	iter = {};
	setReadOnly( iter, 'next', next );
	setReadOnly( iter, 'return', end );

	// If an environment supports `Symbol.iterator` and the provided iterator is iterable, make the iterator iterable:
	if ( iteratorSymbol && isFunction( iterator[ iteratorSymbol ] ) ) {
		setReadOnly( iter, iteratorSymbol, factory );
	}
	return iter;

	/**
	* Returns an iterator protocol-compliant object containing the next iterated value.
	*
	* @private
	* @returns {Object} iterator protocol-compliant object
	*/
	function next() {
		var v;
		if ( FLG ) {
			return {
				'done': true
			};
		}
		while ( true ) {
			v = iterator.next();
			i += 1;
			if ( v.done ) {
				FLG = true;
				return v;
			}
			if ( !predicate.call( thisArg, v.value, i ) ) {
				return {
					'value': v.value,
					'done': false
				};
			}
		}
	}

	/**
	* Finishes an iterator.
	*
	* @private
	* @param {*} [value] - value to return
	* @returns {Object} iterator protocol-compliant object
	*/
	function end( value ) {
		FLG = true;
		if ( arguments.length ) {
			return {
				'value': value,
				'done': true
			};
		}
		return {
			'done': true
		};
	}

	/**
	* Returns a new iterator.
	*
	* @private
	* @returns {Iterator} iterator
	*/
	function factory() {
		return iterReject( iterator[ iteratorSymbol ](), predicate, thisArg );
	}
}
Returns an iterator which rejects a provided iterator's values according to a predicate function.

@param {Iterator} iterator - input iterator
@param {Function} predicate - predicate function
@param {*} [thisArg] - execution context
@throws {TypeError} first argument must be an iterator protocol-compliant object
@throws {TypeError} second argument must be a function
@returns {Iterator} iterator

@example
var array2iterator = require( '@stdlib/array/to-iterator' );

function predicate( v ) {
    return ( v > 2 );
}

var src = array2iterator( [ 1, 3, 2, 4 ] );
var iter = iterReject( src, predicate );

var v = iter.next().value;
// returns 1

v = iter.next().value;
// returns 2

var bool = iter.next().done;
// returns true