Type Editor / @type-editor/dom-util / node-size
node-size
Functions
| Function | Description |
|---|---|
Gets the size of a DOM node. For text nodes (nodeType 3), returns the length of the text content. For element nodes, returns the number of child nodes. Example typescript |