lcm - nodef/extra-bigint GitHub Wiki
Find the least common multiple of bigints.
function lcm(...xs)
// xs: a list of bigints
const xbigint = require('extra-bigint');
xbigint.lcm(2n, 3n);
// → 6n
xbigint.lcm(2n, 3n, 4n);
// → 12n
xbigint.lcm(2n, 3n, 4n, 5n);
// → 60n