Skip to content

stevenvachon/is-dom-detached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-dom-detached NPM Version File Size Build Status Coverage Status Dependency Monitor

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); //-> true

document.body.appendChild(div);
isDetachedNode(div); //-> false

About

Determine if a Node does not exist within a DOM tree.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published