Skip to main content
Module

x/clippy/deps.ts>assertObjectMatch

cross-platform Deno module for writing and reading clipboard.
Go to Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/clippy@v0.2.1/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