Skip to main content
Module

x/eloquent/deps.ts>assert

🐔 Eloquent JavaScript Notes and challenges solved with TypeScript, TDD and love
Latest
function assert
import { assert } from "https://deno.land/x/eloquent@0.1.4/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