/greatest-common-divisor

Find the greatest common divisor of 2 numbers

Primary LanguageJavaScript

greatest-common-divisor

Find the greatest common divisor of 2 numbers

Don't use this module, this person did a much better job with the implementation.

var gcd = require('greatest-common-divisor');

gcd(18, 12);
// 6