Skip to content

generateKey

generateKey([prefix]) ⇒ string

Generates a unique key with the specified prefix.

Kind: global function
Returns: string - The generated key.

ParamTypeDescription
[prefix]stringThe prefix to use for the key (defaults to “PREFIX”).

Example

console.log(generateKey('PREFIX'))