Type Editor / @type-editor/dom-util / is-equivalent-position
is-equivalent-position
Functions
| Function | Description |
|---|---|
Checks if two DOM positions are equivalent. Scans forward and backward through DOM positions to determine if two positions refer to the same location in the document. This is useful for handling cases like a position after a text node vs. at the end of that text node. Example typescript |