function iterSome( iterator, n ) {
	var count;
	var v;
	if ( !isIteratorLike( iterator ) ) {
		throw new TypeError( format( 'invalid argument. First argument must be an iterator. Value: `%s`.', iterator ) );
	}
	if ( !isPositiveInteger( n ) ) {
		throw new TypeError( format( 'invalid argument. Second argument must be a positive integer. Value: `%s`.', n ) );
	}
	count = 0;
	while ( true ) {
		v = iterator.next();
		if ( v.done ) {
			return false;
		}
		if ( v.value ) {
			count += 1;
			if ( count === n ) {
				return true;
			}
		}
	}
}
Tests whether at least `n` iterated values are truthy.

@param {Iterator} iterator - input iterator
@param {PositiveInteger} n - minimum number of truthy elements
@throws {TypeError} first argument must be an iterator
@throws {TypeError} second argument must be a positive integer
@returns {boolean} boolean indicating whether at least `n` iterated values are truthy

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

var it = array2iterator( [ 0, 0, 1, 1, 1 ] );

var bool = iterSome( it, 3 );
// returns true