validate
import { validate } from "jsr:@ende/uuid/v1";function
function validate(id: string): booleanDetermines whether a string is a valid UUIDv1.
id: stringUUID value.
Returns
true if the string is a valid UUIDv1, otherwise false.
Example: Usage
import { validate } from "@ende/uuid/v1";
import { assert, assertFalse } from "@ende/assert";
assert(validate("ea71fc60-a713-11ee-af61-8349da24f689"));
assertFalse(validate("fac8c1e0-ad1a-4204-a0d0-8126ae84495d"));