element-child-content - Shorten Nodelist usage

This commit is contained in:
2020-11-08 18:46:53 +05:30
parent 89e5f490c7
commit 539724e709
+1 -1
View File
@@ -132,7 +132,7 @@ It returns the **number of child elements** of the given element. This is equiva
This property returns a live `NodeList` containing all the **child nodes** of the current element. If there are no child nodes, it returns a empty NodeList.
`NodeList` can be converted to an array easily, using `Array.from()` or `[...node.childNodes]`. NodeList also has a `.length` property.
`NodeList` can be converted to a array using `Array.from()` or `[...node.childNodes]`. NodeList also has a `.length` property.
Here, the NodeList is **live** - so the content of NodeList will auto-update.
```jsx