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

x/bcdeno_api/dev_deps.ts>assert

🎲 Use BCDice-API from Deno easily
Latest
function assert
import { assert } from "https://deno.land/x/bcdeno_api@v1.1.1/dev_deps.ts";

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

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr