The hasChildNodes of Node for JS returns whether node has children.
node.hasChildNodes()
baseURI
childNodes
cloneNode
compareDocumentPosition
contains
firstChild
getRootNode
isConnected
isEqualNode
lastChild
nextSibling
nodeName
nodeType
normalize
ownerDocument
parentElement
parentNode
previousSibling
Web Hypertext Application Technology Working Group (WHATWG)