Skip to content

Commit 5e6f34d

Browse files
author
Gonzalo Diaz
committed
[BUGFIX] SonarQube: Prefer Number.parseInt over parseInt.
Number static methods and properties should be preferred over global equivalents typescript:S7773
1 parent 910cd5b commit 5e6f34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projecteuler/helpers/bigNumbers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const bigNum = (strNumber: string, base = 10): number[] => {
33
let i;
44

55
for (i = 0; i < strNumber.length; i++) {
6-
result.push(parseInt(strNumber.charAt(i), base));
6+
result.push(Number.parseInt(strNumber.charAt(i), base));
77
}
88

99
return result;

0 commit comments

Comments
 (0)