- Source:
Methods
isInDom(node) → {Boolean}
Returns if an element is currently part of the DOM or in a detached state.
Parameters:
Name | Type | Description |
---|---|---|
node |
HTMLElement | the element to check, whether it is currently in the dom or detached |
- Source:
Throws:
error if node is not a usable HTML element
Returns:
true if the element is part of the DOM at the moment
- Type
- Boolean
Example
if( !isInDom(el) ){
elementMetaInformation.delete(el);
}