Skip to content

NIL

const NIL: "00000000-0000-0000-0000-000000000000" = "00000000-0000-0000-0000-000000000000"

Defined in: src/uuid/codec.ts:35

The Nil UUID: all 128 bits zero (RFC 9562 §5.9).

A defined placeholder for “no UUID”, distinct from any generated one.

NIL; // "00000000-0000-0000-0000-000000000000"
validate(NIL); // true
// Sorts before every other UUID.
compare(NIL, v4()); // -1