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

x/justaos_utils/packages/common-utils/deps.ts>uuid.v1.validate

Common utility functions used across projects
Go to Latest
function uuid.v1.validate
import { uuid } from "https://deno.land/x/justaos_utils@v1.9.0/packages/common-utils/deps.ts";
const { validate } = uuid.v1;

Validates the UUID v1.

Examples

Example 1

import { validate } from "https://deno.land/std@0.224.0/uuid/v1.ts";

validate("ea71fc60-a713-11ee-af61-8349da24f689");  // true
validate("fac8c1e0-ad1a-4204-a0d0-8126ae84495d");  // false

Parameters

id: string

UUID value.

Returns

boolean