Skip to content

generateKey

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"));