Skip to main content
The Deno 2 Release Candidate is here
Learn more
Extremely Popular
Latest
function assert
import { assert } from "https://deno.land/x/dejs@0.10.3/vendor/https/deno.land/std/testing/asserts.ts";

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

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr