Skip to main content
Module

x/effection/lib/deps.ts>assert

Structured concurrency and effects for JavaScript
Go to Latest
function assert
import { assert } from "https://deno.land/x/effection@3.0.0-beta.3/lib/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