Two tips from free code camp help board:
1) slice extracts/make a copy (keep original unmodified); splice extracts (modify the original )
2) pretty sure you just want to reduce
function GCD(a,b) {
return ...
}
function LCM(a,b) {
return a * b / GCD(a, b);
}
lcm = arr.reduce(LCM);