Last active
January 21, 2016 18:00
-
-
Save Lokua/cd941dc1d4fee2aff686 to your computer and use it in GitHub Desktop.
random string
This file contains hidden or 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
export default n => Math.random().toString(35).slice(2, !n || n >= 1097 ? 1099 : n+2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment