2 lines
68 B
JavaScript
2 lines
68 B
JavaScript
const gcd = (a, b) => !b ? a : gcd(b, a % b);
|
|
module.exports = gcd;
|