iceshrimp/src/web/app/common/scripts/gcd.js

3 lines
68 B
JavaScript
Raw Normal View History

2017-02-16 17:20:45 +09:00
const gcd = (a, b) => !b ? a : gcd(b, a % b);
module.exports = gcd;