Skip to content

Commit

Permalink
fix: correctly increment index
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Oct 9, 2024
1 parent 1a6bfac commit a982712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/iter/cuevery-by/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function iterCuEveryBy( iterator, predicate, thisArg ) {
FLG = true;
return v;
}
i += 1;
if ( value && !predicate.call( thisArg, v.value, i ) ) {
value = false;
}
Expand Down

0 comments on commit a982712

Please sign in to comment.