This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
|
const DEFAULT_ID_LENGTH = 9
|
|
|
|
export function createRandomID(idLength = DEFAULT_ID_LENGTH) {
|
|
return Math.random().toString(36).slice(2, idLength)
|
|
} |