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

x/dtils/deps.ts>asserts.assert

The best unofficial library of utilities for Deno applications
Latest
function asserts.assert
Re-export
import { asserts } from "https://deno.land/x/dtils@2.6.1/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