Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/mod.ts>stdx.encoding.isNil

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function stdx.encoding.isNil
import { stdx } from "https://deno.land/x/hex@0.6.5/src/lib/mod.ts";
const { isNil } = stdx.encoding;

Check if the passed UUID is the nil UUID.

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