egirlskey/src/web/app/common/scripts/gcd.ts
2017-11-13 18:05:35 +09:00

2 lines
66 B
TypeScript

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