Skip to content

Determine if an object is a void HTMLElement (from any Realm).

License

Notifications You must be signed in to change notification settings

stevenvachon/is-dom-void

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Determine if an object is a void HTMLElement (from any Realm).

Installation

Node.js >= 10 is required. To install, type this at the command line:

npm install is-dom-void

Importing

ES Module:

import isDOMVoidElement from 'is-dom-void';

CommonJS Module:

const isDOMVoidElement = require('is-dom-void');

Usage

isDOMVoidElement(document.createElement('div')); //-> false
isDOMVoidElement(document.createElement('input')); //-> true

About

Determine if an object is a void HTMLElement (from any Realm).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published