Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/uuid/mod.ts>isNil

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function isNil
import { isNil } from "https://deno.land/std@0.209.0/uuid/mod.ts";

Check if the passed UUID is the nil UUID.

import { isNil } from "https://deno.land/std@0.209.0/uuid/mod.ts";

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

Parameters

id: string

Returns

boolean