Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ function Hypergeometric( N, K, n ) {
throw new TypeError( format( 'invalid argument. Number of draws must be a nonnegative integer. Value: `%s`.', n ) );
}
if ( K > N ) {
throw new RangeError( 'invalid arguments. Subpopulation size must be less than or equal to the population size.' );
throw new RangeError( format( 'invalid arguments. Subpopulation size must be less than or equal to the population size.' ) );
}
if ( n > N ) {
throw new RangeError( 'invalid arguments. Number of draws must be less than or equal to the population size.' );
throw new RangeError( format( 'invalid arguments. Number of draws must be less than or equal to the population size.' ) );
}
defineProperty( this, 'N', {
'configurable': false,
Expand Down