Appearance
Function: pseudoUniqueId()
ts
function pseudoUniqueId(prefix?: string): string;Defined in: src/highlight/Highlight.tsx:45
Generates a pseudo-random UUID v4-like identifier.
Parameters
| Parameter | Type | Description |
|---|---|---|
prefix? | string | Optional prefix to prepend to the ID. If '$MW$', uses format $MW$-{id}, otherwise {prefix}-{id}. |
Returns
string
A unique identifier string with the specified prefix (if provided).