Last active
December 28, 2022 18:16
-
-
Save prashant1k99/e11b01a01dead835a1382a596d50e31d to your computer and use it in GitHub Desktop.
To generate UUID in Js without any library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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