Skip to content

Instantly share code, notes, and snippets.

@vladimir-ivanov
Created November 24, 2019 17:11
Show Gist options
  • Save vladimir-ivanov/21fb67c10c88c7590e260638bb512d13 to your computer and use it in GitHub Desktop.
Save vladimir-ivanov/21fb67c10c88c7590e260638bb512d13 to your computer and use it in GitHub Desktop.
const greatestCommonDivisor(a: number, b: number): number => (b === 0) ? a : greatestCommonDivisor(b, a % b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment