We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Find the least common multiple of numbers.
Similar: gcd, lcm.
function lcm(...xs) // xs: a list of numbers
const xmath = require('extra-math'); xmath.lcm(2, 3); // → 6 xmath.lcm(2, 3, 4); // → 12 xmath.lcm(2, 3, 4, 5); // → 60