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

Usage in Deno

```typescript import mod from "node:node__assert.d.ts"; ```
deepEqual(
actual: unknown,
expected: unknown,
message?: string | Error,
): void
**Strict assertion mode** An alias of [deepStrictEqual](../.././node__assert.d.ts/~/default.deepStrictEqual). **Legacy assertion mode** > Stability: 3 - Legacy: Use [deepStrictEqual](../.././node__assert.d.ts/~/default.deepStrictEqual) instead. Tests for deep equality between the `actual` and `expected` parameters. Consider using [deepStrictEqual](../.././node__assert.d.ts/~/default.deepStrictEqual) instead. [deepEqual](../.././node__assert.d.ts/~/default.deepEqual) can have surprising results. _Deep equality_ means that the enumerable "own" properties of child objects are also recursively evaluated by the following rules.

Parameters

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

Return Type

void