Update arrayLcm.md

Fixed second example as @iamsoorena suggested
This commit is contained in:
Angelos Chalaris
2017-12-21 17:27:07 +02:00
committed by GitHub
parent c244042665
commit 16cba8a454

View File

@ -11,5 +11,5 @@ const arrayLcm = arr =>{
return arr.reduce((a,b) => lcm(a,b));
}
// arrayLcm([1,2,3,4,5]) -> 60
// arrayLcm([4,8,12]) -> 12
// arrayLcm([4,8,12]) -> 24
```