Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_class_validator/src/index.ts>isUUID

Decorator-based property validation for classes.
Latest
function isUUID
import { isUUID } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Checks if the string is a UUID (version 3, 4 or 5). If given value is not a string, then it returns false.

Parameters

value: unknown
optional
version: UUIDVersion

Returns

boolean