Type Editor / @type-editor/model / elements/util/compare-deep
elements/util/compare-deep
Functions
| Function | Description |
|---|---|
Performs a deep equality comparison between two values. This function recursively compares objects and arrays by their structure and content, rather than by reference. It supports nested structures and handles various data types including primitives, arrays, and plain objects. Comparison behavior:
Note: This function is designed for comparing plain objects and arrays typically used in ProseMirror attributes. It does not handle special object types like Date, RegExp, Map, Set, or custom class instances. Example typescript |