UUID
UUID
Universally Unique Identifier
Kind: global class
See: IETF RFC 4122
- UUID
- instance
- .data
- .data ⇒
Uint8Array
- .isUUID :
boolean
- .v1()
- .v4()
- .toString() ⇒
string
- .copy(other)
- .equals(other) ⇒
boolean
- .hash() ⇒
number
- static
- instance
uuiD.data
Kind: instance property of UUID
Param | Type |
---|---|
bytes | Array.<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
Param | Type |
---|---|
other | UUID |
uuiD.equals(other) ⇒ boolean
Kind: instance method of UUID
Param | Type |
---|---|
other | UUID |
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
Param | Type |
---|---|
string | string |