Created
May 9, 2022 12:36
-
-
Save Graniron/db09c0cfc277fdb69e4486f730a90233 to your computer and use it in GitHub Desktop.
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
const getUniqueId = () => { | |
return Math.random() | |
.toString(36) | |
.replace(/[^a-z]+/g, '') | |
.substring(0, 5); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment