misskey/src/web/app/common/scripts/gcd.js
syuilo 45e8331e26 🍣
Closes #12, #227 and #58
2017-03-18 20:05:11 +09:00

3 lines
66 B
JavaScript

const gcd = (a, b) => !b ? a : gcd(b, a % b);
export default gcd;