Skip to content

stevenvachon/is-dom-document

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Installation

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

npm install is-dom-document

Importing

ES Module:

import isDOMDocument from 'is-dom-document';

CommonJS Module:

const isDOMDocument = require('is-dom-document');

Usage

isDOMDocument(window.document); //-> true
isDOMDocument({}); //-> false

About

Determine if an object is a DOM Document (from any Realm).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published