Travis build: 563 [cron]

This commit is contained in:
30secondsofcode
2018-09-29 20:15:22 +00:00
parent 920f8a445b
commit eca8ab3152
9 changed files with 1758 additions and 1601 deletions

View File

@ -1,6 +1,6 @@
const lcm = (...arr) => {
const gcd = (x, y) => (!y ? x : gcd(y, x % y));
const _lcm = (x, y) => x * y / gcd(x, y);
const _lcm = (x, y) => (x * y) / gcd(x, y);
return [...arr].reduce((a, b) => _lcm(a, b));
};
module.exports = lcm;