Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Jul 18, 2024
1 parent b057267 commit dbcdbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function toRoman(arabic) {
roman += keys[index]
acc -= value
}
array.slice(index + 1).forEach((subractor, i, a) => {
array.slice(index + 1).forEach((subractor, i) => {
if (subractor.toString().startsWith("1") && acc >= value - subractor) {
roman += keys[index + 1 + i] + keys[index]
acc -= value - subractor
Expand Down

0 comments on commit dbcdbe0

Please sign in to comment.