isConnected(node) returns the node's node.isConnected flag — true when the node is attached to a document tree, false otherwise. Part of pota/use/dom.
isConnected(node)
node.isConnected
true
false
pota/use/dom