jormungandr-bite/src/web/app/common/scripts/gcd.js

3 lines
68 B
JavaScript
Raw Normal View History

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