fun-gcd
v1.0.5
Published
Get **Greatest Common Divisor (GCD)** using Euclidean Algorithm.
Downloads
4
Maintainers
Readme
Get Greatest Common Divisor (GCD) using Euclidean Algorithm.
Install
npm i fun-gcd
Usage
// es5
const eq = require("fun-gcd");
// es6
import eq from "fun-gcd";
console.log(eq.gcdOfTwo(2, 3));
// => 1
console.log(eq.gcdOfTwo(7, 77));
// => 7