Skip to content

Commit 71adeb1

Browse files
committed
Add comment
1 parent 0bbdfc8 commit 71adeb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/iter/dedupe-by/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function fcn( curr, sprev, dprev, i, acc ) {
185185
return 1;
186186
}
187187
if ( curr === dprev ) {
188-
return acc;
188+
return acc; // ensures that duplicate values are removed
189189
}
190190
// curr > dprev
191191
return -1;

lib/node_modules/@stdlib/iter/dedupe-by/examples/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function fcn( curr, sprev, dprev, i, acc ) {
2727
return 1;
2828
}
2929
if ( curr === dprev ) {
30-
return acc;
30+
return acc; // ensures that duplicate values are removed
3131
}
3232
// curr > dprev
3333
return -1;

0 commit comments

Comments
 (0)