Skip to content

Instantly share code, notes, and snippets.

@prashant1k99
Last active December 28, 2022 18: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 prashant1k99/e11b01a01dead835a1382a596d50e31d to your computer and use it in GitHub Desktop.
Save prashant1k99/e11b01a01dead835a1382a596d50e31d to your computer and use it in GitHub Desktop.
To generate UUID in Js without any library
Date.now().toString(36) + Math.random().toString(36).substring(2,10)
// Another way
crypto.randomUUID()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment