Warmup - Greatest Common Divisor

Warmup - Greatest Common Divisor

Write a JavaScript function to find the GCD (greatest common divisor) of more than 2 integers.

Test Data:

console.log(gcd_more_than_two_numbers([3,15,27])); 
console.log(gcd_more_than_two_numbers([5,10,15,25]));
Output :
3 
5