validate
import { validate } from "jsr:@ende/uuid/unstable-v6";function ยท experimental
function validate(id: string): booleanDetermines whether a string is a valid UUIDv6.
id: stringUUID value.
Returns
true if the string is a valid UUIDv6, otherwise false.
Example: Usage
import { validate } from "@ende/uuid/unstable-v6";
import { assert, assertFalse } from "@ende/assert";
assert(validate("1efed67d-d966-6490-8b9a-755015853480"));
assertFalse(validate("1efed67d-d966-1490-8b9a-755015853480"));