Skip to content

Commit

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

1 comment on commit 8d51aeb

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
iter/cunone-by $\color{green}223/223$
$\color{green}+100.00\%$
$\color{green}21/21$
$\color{green}+100.00\%$
$\color{green}4/4$
$\color{green}+100.00\%$
$\color{green}223/223$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.