deepEqual

Commons
stable

Recursively compares two values for structural equality. Handles primitives, Date objects, and plain objects. Returns true when both values have identical structure and content.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

a
requis
any
The first value to compare.
b
requis
any
The second value to compare.

API

Valeur de retour

La valeur retournée par cet util.

true when both values are structurally equal, false otherwise.

Usage

Exemples

Extraits de code prêts à coller.

Comparing objects and dates

typescript