Skip to main content

UUID

UUID

Universally Unique Identifier

Kind: global class
See: IETF RFC 4122

uuiD.data

Kind: instance property of UUID

ParamType
bytesArray.<number> | Uint8Array | ArrayLike.<number>

uuiD.data ⇒ Uint8Array

Kind: instance property of UUID

uuiD.isUUID : boolean

Kind: instance property of UUID
Read only: true

uuiD.v1()

Generate Variant 1 UUID

Kind: instance method of UUID

uuiD.v4()

Generate Variant 4 UUID (fully random)

Kind: instance method of UUID

uuiD.toString() ⇒ string

Kind: instance method of UUID
See: https://github.com/uuidjs/uuid/blob/8f028c4ea42ce41a9a9dc5fa634abe525b2e2066/src/stringify.js#L16

uuiD.copy(other)

Kind: instance method of UUID

ParamType
otherUUID

uuiD.equals(other) ⇒ boolean

Kind: instance method of UUID

ParamType
otherUUID

uuiD.hash() ⇒ number

Kind: instance method of UUID

UUID.typeName : string

Kind: static property of UUID
Read only: true

UUID.v1() ⇒ UUID

Kind: static method of UUID

UUID.string() ⇒ string

Shortcut to generate string-form ID Uses v4 UUID

Kind: static method of UUID

UUID.parse(string) ⇒ UUID

Kind: static method of UUID

ParamType
stringstring