Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/deps.ts>asserts.assertFalse

The best unofficial library of utilities for Deno applications
Go to Latest
function asserts.assertFalse
import { asserts } from "https://deno.land/x/dtils@2.0.0-beta.1/deps.ts";
const { assertFalse } = asserts;

Make an assertion, error will be thrown if expr have truthy value.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr is false