Skip to content

Instantly share code, notes, and snippets.

@antyakushev
Created October 7, 2016 21:25
Show Gist options
  • Save antyakushev/da86a7f48443b1aa847ebe1fa66ea11f to your computer and use it in GitHub Desktop.
Save antyakushev/da86a7f48443b1aa847ebe1fa66ea11f to your computer and use it in GitHub Desktop.
const gcd = (a, b) => b === 0 ? a : gcd(b, a % b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment