Skip to content

Commit

Permalink
feat: added iter/do-until-each
Browse files Browse the repository at this point in the history
  • Loading branch information
raunak-dev-edu committed Feb 28, 2024
1 parent cc8d275 commit fb2568c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/iter/do-until-each/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function predicate( v ) {
}

function assert( v, i ) {
if ( i > 1 ) {
if ( i > 2 ) {
throw new Error( 'unexpected error' );
}
}
Expand Down Expand Up @@ -184,7 +184,7 @@ function assert( v ) {
}

function predicate( v ) {
return v > 0.75;
return v <= 0.75;
}

// Create a seeded iterator for generating pseudorandom numbers:
Expand Down

0 comments on commit fb2568c

Please sign in to comment.