isNil

import { isNil } from "jsr:@ende/uuid";

function

function isNil(id: string): boolean

Determines whether the UUID is the nil UUID.

id: string

UUID value.

Returns

true if the UUID is the nil UUID, otherwise false.

Example: Usage

import { isNil } from "@ende/uuid";
import { assert, assertFalse } from "@ende/assert";

assert(isNil("00000000-0000-0000-0000-000000000000"));
assertFalse(isNil(crypto.randomUUID()));

Source