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

x/html_parser/src/deps.ts>assertions.assert

Port of fb55/htmlparser2 for Deno
Latest
function assertions.assert
import { assertions } from "https://deno.land/x/html_parser@v0.1.3/src/deps.ts";
const { assert } = assertions;

Make an assertion, error will be thrown if expr does not have truthy value.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr