Skip to content

Function: pseudoUniqueId()

ts
function pseudoUniqueId(prefix?: string): string;

Defined in: src/highlight/Highlight.tsx:45

Generates a pseudo-random UUID v4-like identifier.

Parameters

ParameterTypeDescription
prefix?stringOptional 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).

Matterway Assistant SDK Documentation