Skip to content

Commit dbc3ebd

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] ESLint manual fixes: error Invalid operand for a '+' operation. Operands must each be a number or string, allowing a string + any of: any, boolean, null, RegExp, undefined. Got string[] @typescript-eslint/restrict-plus-operands
1 parent 83cf59e commit dbc3ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projecteuler/problem0024.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const permute = (symbols: string, target: number): string => {
2727
index += 1;
2828
min += combos;
2929
}
30-
answer += choices.splice(index, 1);
30+
answer += choices.splice(index, 1).toString();
3131
min -= combos;
3232
}
3333

0 commit comments

Comments
 (0)