Skip to main content
default.deepStrictEqual - node__assert.d.ts - Node documentation
function default.deepStrictEqual

Usage in Deno

```typescript import mod from "node:node__assert.d.ts"; ```
deepStrictEqual<T>(
actual: unknown,
expected: T,
message?: string | Error,
): asserts actual is T
Tests for deep equality between the `actual` and `expected` parameters. "Deep" equality means that the enumerable "own" properties of child objects are recursively evaluated also by the following rules.

Type Parameters

T

Parameters

actual: unknown
expected: T
optional
message: string | Error

Return Type

asserts actual is T