Skip to main content
Module

x/clippy/deps.ts>assertObjectMatch

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