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

x/frugal/dep/std/asserts.ts>assert

A frugal web framework
Go to Latest
function assert
import { assert } from "https://deno.land/x/frugal@0.3.0/dep/std/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