From 35bc0c024f0657057b048e98989d6e6bfa96b25b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 16 Feb 2017 17:20:45 +0900 Subject: [Client] 良い感じに MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/common/scripts/gcd.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/web/app/common/scripts/gcd.js (limited to 'src/web/app/common/scripts') diff --git a/src/web/app/common/scripts/gcd.js b/src/web/app/common/scripts/gcd.js new file mode 100644 index 0000000000..43bfbc57ae --- /dev/null +++ b/src/web/app/common/scripts/gcd.js @@ -0,0 +1,2 @@ +const gcd = (a, b) => !b ? a : gcd(b, a % b); +module.exports = gcd; -- cgit v1.2.3-freya