Skip to content

Instantly share code, notes, and snippets.

@yishn
Last active April 9, 2024 18:22
Show Gist options
  • Save yishn/e2848eaf4dff34ed031a315130416dae to your computer and use it in GitHub Desktop.
Save yishn/e2848eaf4dff34ed031a315130416dae to your computer and use it in GitHub Desktop.
Get shorter UUID
function id() {
return crypto.randomUUID().split('-').map(x => parseInt(x, 16).toString(36)).join('')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment