Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unique string id js

const uid = () => {
  return Date.now().toString(36) + Math.random().toString(36).substr(2);
};

// Usage. Example, id = khhry2hb7uip12rj2iu
const id = uid();
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #unique #string #id #js
ADD COMMENT
Topic
Name
3+1 =