Skip to content

Instantly share code, notes, and snippets.

@herrfugbaum
Last active August 29, 2017 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herrfugbaum/f8c5b39246f74134ac7f9094d558b2b3 to your computer and use it in GitHub Desktop.
Save herrfugbaum/f8c5b39246f74134ac7f9094d558b2b3 to your computer and use it in GitHub Desktop.
Euclidean algorithm
const euclid = (w, h) => h === 0 ? w : euclid(h, w % h)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment