We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48021e1 commit 5d5e4e8Copy full SHA for 5d5e4e8
Maths/GetEuclidGCD.js
@@ -9,7 +9,7 @@ export function GetEuclidGCD(a, b) {
9
throw new TypeError('Arguments must be numbers')
10
}
11
a, b = Math.abs(a), Math.abs(b)
12
- if (a == 0 && b == 0) return undefined // infinitely many numbers divide 0
+ if (a === 0 && b === 0) return undefined // infinitely many numbers divide 0
13
if (a < 0) a = -a
14
if (b < 0) b = -b
15
while (b !== 0) {
0 commit comments