Skip to content

Commit

Permalink
Typo, incorrect function called
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 3, 2024
1 parent 8d56004 commit 5c24beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/src/p0021.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports.p0021 = function() {
if (a !== b && d(b) === a) {
answer += a + b;
if (b < 10000) {
toCheck.splice(toCheck.find(b), 1);
toCheck.splice(toCheck.indexOf(b), 1);
}
}
}
Expand Down

0 comments on commit 5c24beb

Please sign in to comment.