std/uuid/mod.ts

Deno standard library
Go to Latest
function isNil
import { isNil } from "https://deno.land/std@0.147.0/uuid/mod.ts?s=isNil";

Check if the passed UUID is the nil UUID.

import { isNil } from "./mod.ts";

isNil("00000000-0000-0000-0000-000000000000") // true
isNil(crypto.randomUUID()) // false

Parameters

id: string[src]