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

x/pptr/src/assert.ts>assert

Headless Chrome Deno API
Latest
function assert
import { assert } from "https://deno.land/x/pptr@1.2.0/src/assert.ts";

Asserts that the given value is truthy.

Parameters

value: unknown
optional
message: string
  • the error message to throw if the value is not truthy.

Returns

asserts value