Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/unknownutil/assert.ts>assertUndefined

🦕 An utility pack for handling unknown type in deno
Go to Latest
function assertUndefined
import { assertUndefined } from "https://deno.land/x/unknownutil@v2.0.0/assert.ts";

Ensure that x is undefined, and raise AssertError if it is not.

Parameters

x: unknown

Returns

asserts x is undefined