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

x/fsrouter/deps.ts>asserts.assert

A file system based router for Deno.
Latest
function asserts.assert
import { asserts } from "https://deno.land/x/fsrouter@3.1.0/deps.ts";
const { assert } = asserts;

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

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr