Skip to main content
Module

x/typestruct/dev_deps.ts>assertStrictEquals

Composable and checkable JavaScript (and TypeScript) data structure
Latest
function assertStrictEquals
import { assertStrictEquals } from "https://deno.land/x/typestruct@1.0.0-beta.5/dev_deps.ts";

Make an assertion that actual and expected are strictly equal. If not then throw.

import { assertStrictEquals } from "https://deno.land/std@0.224.0/testing/asserts.ts";

assertStrictEquals(1, 2)

Parameters

actual: unknown
expected: T
optional
msg: string

Returns

asserts actual is T