iceshrimp/src/web/app/common/scripts/gcd.js
syuilo ac225d4ea6 🍣
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;