Skip to main content
Module

x/mongo/mod.ts>Bson.UUID.isValid

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Bson.UUID.isValid
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.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