fix types error in GetGCD method

This commit is contained in:
Suryapratap Singh
2021-08-31 03:33:35 +05:30
parent 60b185d8cb
commit d7e8bf492d

View File

@ -13,7 +13,6 @@
*/
const getGcd = (arg1, arg2) => {
// Find a minimum of both numbers.
let less = arg1 > arg2 ? arg2 : arg1
// Iterate the number and find the gcd of the number using the above explanation.
for (less; less >= 2; less--) {