is-dom-detached
2.0.0 • Public • Published is-dom-detached
Determine if a Node
does not exist within a DOM tree.
Installation
Node.js >= 10
is required. To install, type this at the command line:
npm install is-dom-detached
Importing
ES Module:
import isDetachedNode from 'is-dom-detached';
CommonJS Module:
const isDetachedNode = require('is-dom-detached');
Usage
const div = document.createElement('div');
isDetachedNode(div);
document.body.appendChild(div);
isDetachedNode(div);
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
2.0.0 | 1 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
2.0.0 | 1 | |
Package Sidebar
Install
Weekly Downloads