Private
bytesBuffer containing the bytes for this UUID
Private
stringObject containing results of the .toString
method.
The .toString
executes regex to check for string
validity and can be slow when used multiple times.
These cached values avoids multiple executions of
the regex.
Optional
dashes?: stringOptional
noThe variant for this UUID
The version for this UUID
This method is executed when the UUID
instance is used in a "primitive context".
const uuid = new UUID(...);
// Without this method
console.log('UUID: ' + uuid); // -> 'UUID: [object Object]'
// With this method
console.log('UUID: ' + uuid); // -> 'UUID: 7ed9e77e-34b8-400e-b684-9093c550b4f9'
A string containing the UUID
Generated using TypeDoc
UUID Class
See
https://en.wikipedia.org/wiki/Universally_unique_identifier