Calculates the greatest common divisor (GCD) of multiple numbers.
The function uses the Euclidean algorithm to calculate the GCD of the given set of values.
It iteratively reduces the set of values to find the greatest common divisor.
Parameters
...values: number[]
A list of numbers to find the GCD of.
Returns number
The greatest common divisor of the provided numbers.
Calculates the greatest common divisor (GCD) of multiple numbers. The function uses the Euclidean algorithm to calculate the GCD of the given set of values. It iteratively reduces the set of values to find the greatest common divisor.