Skip to main content
Module

x/lru_map/dev_deps.ts>assertObjectMatch

Minimum LRU cache based on Map object
Latest
function assertObjectMatch
import { assertObjectMatch } from "https://deno.land/x/lru_map@1.0.0-beta.1/dev_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>