Module

std/uuid/mod.ts>isNil

The Deno Standard Library
Latest
function isNil
import { isNil } from "https://dotland.deno.dev/std@0.224.0/uuid/mod.ts";

Check if the passed UUID is the nil UUID.

Examples

Example 1

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

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

Parameters

id: string

Returns

boolean