diff --git a/docs/element-child-content.mdx b/docs/element-child-content.mdx index 562ed7a..036d21f 100644 --- a/docs/element-child-content.mdx +++ b/docs/element-child-content.mdx @@ -119,6 +119,7 @@ This property is also available on `Document` and `DocumentFragment`. :::note Counting number of child elements `Element.childElementCount: number` + It returns the **number of child elements** of the given element. This is equivalent to `ele.children.length` value. ::: @@ -155,6 +156,7 @@ This property is available on all types of `Node` - like Element, text node, etc :::note Check if there is any child node `Node.hasChildNodes() : boolean` + This method checks whether the given node **has child nodes or not** and returns a boolean value. This is equivalent to checking `node.childNodes.length > 0`. :::