How may I change he filters in order to get the LCM of the arrays?

I am trying to get complet these two: `smallestCommons([2, 10])`

should return 2520.

`smallestCommons([1, 13])`

should return 360360.

```
function smallestCommons(arr) {
let a=[];
for(let i=arr[0];i<=arr[1];i++){
for(let j=arr[0];j<=i;j++){
if(i%j==0){
a.push(j)
}
}
}
let evenArr=a.filter(e=>e%2==0)
let oddArr=a.filter(e=>e%2!=0)
let multipliedArr=oddArr.reduce((a,b)=>a*b)
console.log(oddArr)
let maxEvenNum=Math.max(...evenArr)
//console.log(multipliedArr)
//console.log(maxEvenNum)
let b=multipliedArr*maxEvenNum
//console.log(b)
return b;
}
smallestCommons([1,13]);
```