Skip to main content

Class: Uuid

Constructors​

new Uuid()​

new Uuid(): Uuid

Returns​

Uuid

Methods​

generate()​

static generate(): string

Returns​

string

Defined in​

m2c2kit/packages/core/src/Uuid.ts:3


isValid()​

static isValid(uuid): boolean

Tests if a string is a valid UUID.

Parameters​

• uuid: undefined | null | string

the string to test

Returns​

boolean

true if the string is a valid UUID

Remarks​

Will match UUID versions 1 through 8, plus the nil UUID.

Defined in​

m2c2kit/packages/core/src/Uuid.ts:44