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:
;
CommonJS Module:
const isDetachedNode = ;
Usage
const div = document;; //-> true documentbody;; //-> false