Creates a new DeepDiffer instance
Optional config: Partial<DeepDiffConfig>Optional configuration overrides
Private configPrivate describeGenerate a deep diff between two values
Complete diff results including changes, summary, and formatted output
const differ = new DeepDiffer({ includeUnchanged: true });
const result = differ.diff(
{ users: [{ id: 1, name: 'Alice' }] },
{ users: [{ id: 1, name: 'Alice Cooper' }] }
);
Private diffPrivate Compare two arrays and generate diff
Private diffPrivate Compare two objects and generate diff
Private formatPrivate Format the diff results as a human-readable string
Number of properties/values that were added
Number of properties/values that were modified
Number of properties/values that were removed
Total number of paths examined
Number of properties/values that remained unchanged (if tracked)
Private generatePrivate Recursively generate diff between two values
Private getUpdate configuration options
Partial configuration to merge with existing config
Deep difference generator for comparing JavaScript objects, arrays, and primitives.
This class provides comprehensive comparison capabilities with configurable output formatting and depth control.