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

x/lophus/lib/std/assert.ts>assertFalse

Fully-modular TypeScript implementation of the Nostr protocol, oriented to web standards and edge environments
Latest
function assertFalse
import { assertFalse } from "https://deno.land/x/lophus@0.0.13/lib/std/assert.ts";

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

Examples

Example 1

import { assertFalse } from "https://deno.land/std@0.224.0/assert/assert_false.ts";

assertFalse(false); // Doesn't throw
assertFalse(true); // Throws

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr is Falsy