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

x/hex/src/service/deps.ts>asserts.assertObjectMatch

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function asserts.assertObjectMatch
import { asserts } from "https://deno.land/x/hex@0.5.15/src/service/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>