is-dom-document

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-dom-document

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.49 kB

Total Files

6

Last publish

Collaborators

  • stevenvachon