Skip to main content
Module

x/pagic/deps.ts>asserts.assertObjectMatch

A static site generator powered by Deno + React
Latest
function asserts.assertObjectMatch
import { asserts } from "https://deno.land/x/pagic@v1.6.3/deps.ts";
const { assertObjectMatch } = asserts;

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>