generateKey
generateKey([prefix]) ⇒ string
Section titled “generateKey([prefix]) ⇒ string”Generates a unique key with the specified prefix.
Kind: global function
Returns: string - The generated key.
| Param | Type | Description |
|---|---|---|
| [prefix] | string | The prefix to use for the key (defaults to “PREFIX”). |
Example
console.log(generateKey("PREFIX"));