Function uid

Generates a unique string with optional special characters.

uid(7) // => UaOKdlW
uid(20, '*') // => dyJdbC*NsEgcnGjTHS
  • Parameters

    • length: number
    • specials: string = ''

    Returns string