Profectus / features/feature / getUniqueID
Function: getUniqueID() ​
getUniqueID(
prefix
):string
Gets a unique ID to give to each feature, used for any sort of system that needs to identify elements in the DOM rather than references to the feature itself. (For example, branches) IDs are guaranteed unique, but NOT persistent - they likely will change between updates.
Parameters ​
prefix ​
string
= "feature-"
A string to prepend to the id to make it more readable in the inspector tools
Returns ​
string