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

x/hex/src/web/deps.ts>asserts.assert

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function asserts.assert
import { asserts } from "https://deno.land/x/hex@0.5.15/src/web/deps.ts";
const { assert } = asserts;

Make an assertion, if not true, then throw.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr