Created
October 4, 2017 11:47
-
-
Save schas002/5f722bcb2e9a2e866586de6dfe7acfdf to your computer and use it in GitHub Desktop.
Humble one-liner to generate UIDs in vanilla.
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
module.exports = _ => new Date().getTime().toString(36) + '.' + (Math.random() * Math.pow(2, 32)).toString(36); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment