Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fp/tests/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/fp/tests/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