Returns the greatest common divisor (GCD) of all elements in the array.
`fn(item)` is applied to each element before computing.
