Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ID - a unique ID/name generator for JavaScript
// Do not use. Use Symbol() instead.
Copy link

swapnil-sudhir commented Apr 1, 2022

Can anyone reduce the length of the string by 5-6 Characters still maintaining the collision factor ?

Copy link

was-coder commented Apr 4, 2022


what about this return new Date().getTime().toString(36).concat(, Math.random().toString()).replace(/\./g,"");

Thanks this was helpful

Copy link

DaEnder commented Sep 18, 2022


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment