Skip to content

Commit 5d5e4e8

Browse files
authored
Replace == with ===
1 parent 48021e1 commit 5d5e4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maths/GetEuclidGCD.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function GetEuclidGCD(a, b) {
99
throw new TypeError('Arguments must be numbers')
1010
}
1111
a, b = Math.abs(a), Math.abs(b)
12-
if (a == 0 && b == 0) return undefined // infinitely many numbers divide 0
12+
if (a === 0 && b === 0) return undefined // infinitely many numbers divide 0
1313
if (a < 0) a = -a
1414
if (b < 0) b = -b
1515
while (b !== 0) {

0 commit comments

Comments
 (0)