Skip to main content
Module

x/mtkruto/deps.ts>assertObjectMatch

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/mtkruto@0.0.984/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