Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
210 B
1
Indexable
Never
export const genID = (prefix: string): string => {
  const neverZero: number = Date.now() + Math.random()
  const id = neverZero.toString(LATIN_ALPHABET_AND_NUMBERS).replace(".", "")
  return `${prefix}${id}`
}