Returns the least common multiple (LCM) of all elements in the array.
`fn(item)` is applied to each element before computing.
