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

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

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

Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.

Parameters

actual: Record<PropertyKey, any>
expected: Record<PropertyKey, unknown>