greatest-common-divisor

Computes the greatest common divisor

Usage no npm install needed!

<script type="module">
  import greatestCommonDivisor from 'https://cdn.skypack.dev/greatest-common-divisor';
</script>

README

greatest-common-divisor

Computes the greatest common divisor

Install

$ npm i -g greatest-common-divisor

Usage

import gcd from 'greatest-common-divisor'

gcd(12, 18) // 6

License

MIT