function validate
validate(id: string): booleanValidate that the passed UUID is an RFC4122 v3 UUID.
Examples
Example 1
Example 1
import { generate, validate } from "@std/uuid/v3"; validate(await generate("6ba7b811-9dad-11d1-80b4-00c04fd430c8", new Uint8Array())); // true validate(crypto.randomUUID()); // false validate("this-is-not-a-uuid"); // false
Parameters
id: string