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

x/model/dependencies/mongo.ts>Bson.UUID.isValid

model based mongo for deno
Latest
method Bson.UUID.isValid
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { UUID } = Bson;

Checks if a value is a valid bson UUID

Parameters

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

Returns

boolean