Module

std/_util/assert.ts>assert

Deno standard library
Go to Latest
function assert
import { assert } from "https://dotland.deno.dev/std@0.119.0/_util/assert.ts";

Make an assertion, if not true, then throw.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr