• Generates a unique ID. If prefix is provided the ID is appended to it.

    Parameters

    • Optionalprefix: string

      The value to prefix the ID with.

    Returns string

    Returns the unique ID.