Determines whether the UUID is the nil UUID.
UUID value.
true if the UUID is the nil UUID, otherwise false.
true
false
import { isNil } from "@std/uuid";import { assert, assertFalse } from "@std/assert";assert(isNil("00000000-0000-0000-0000-000000000000"));assertFalse(isNil(crypto.randomUUID())); Copy
import { isNil } from "@std/uuid";import { assert, assertFalse } from "@std/assert";assert(isNil("00000000-0000-0000-0000-000000000000"));assertFalse(isNil(crypto.randomUUID()));
Determines whether the UUID is the nil UUID.