Skip to main content
Module

x/silicon/deps.ts>assertObjectMatch

Deno module to generate images from source code using Aloxaf/silicon.
Go to Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/silicon@v0.0.5/deps.ts";

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>
optional
msg: string