Skip to main content
Module

x/web_bson/src/bson.ts>UUID.isValid

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
method UUID.isValid
Re-export
import { UUID } from "https://deno.land/x/web_bson@v0.2.4/src/bson.ts";

Checks if a value is a valid bson UUID

Parameters

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

Returns

boolean