Update arrayLcm.md
Fixed second example as @iamsoorena suggested
This commit is contained in:
@ -11,5 +11,5 @@ const arrayLcm = arr =>{
|
|||||||
return arr.reduce((a,b) => lcm(a,b));
|
return arr.reduce((a,b) => lcm(a,b));
|
||||||
}
|
}
|
||||||
// arrayLcm([1,2,3,4,5]) -> 60
|
// arrayLcm([1,2,3,4,5]) -> 60
|
||||||
// arrayLcm([4,8,12]) -> 12
|
// arrayLcm([4,8,12]) -> 24
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user