mizzkey/src/web/app/common/scripts/gcd.js
2017-02-16 17:20:45 +09:00

3 lines
68 B
JavaScript

const gcd = (a, b) => !b ? a : gcd(b, a % b);
module.exports = gcd;