Sharkey/src/client/app/common/scripts/gcd.ts
2018-03-29 20:32:18 +09:00

2 lines
66 B
TypeScript

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