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

x/denodb/deps.ts>Bson.UUID.isValid

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
method Bson.UUID.isValid
import { Bson } from "https://deno.land/x/denodb@v1.1.0/deps.ts";
const { UUID } = Bson;

Checks if a value is a valid bson UUID

Parameters

input: string | Buffer | UUID
  • UUID, string or Buffer to validate.

Returns

boolean