My code works in Chrome console but not in fcc for some reason:

```
//noprotect
function smallestCommons(arr) {
let sorted = arr.sort((a, b) => {
if (a < b) {
return a + b;
}
return arr;
});
let range = [];
for (let i = sorted[0]; i >= sorted[1]; i--) {
range.push(i);
}
function lcm(a, b) {
for (let j = 0; j <= 100000000; j+=a) {
let multipleA = a + j;
if (multipleA % a === 0) {
for (let k = 0; k <= multipleA; k+=b) {
let multipleB = b + k;
if (multipleB % b === 0 && multipleB === multipleA) {
return multipleB;
}
}
}
}
}
return range.reduce((x, y) => {
return lcm(x, y);
});
}
smallestCommons([23, 18]);
```

i’ve tried adding // noprotect to disable infinite loop tracking but it seems like it’s still detecting something. it seems to be stopping when x and y are passed into the function as `106260, 19`