is-dom
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-dom package

1.1.0 • Public • Published

is-dom

NPM version build status Test coverage Downloads

Check if the given object is a dom node.

Installation

$ npm install is-dom

Usage

var isDom = require('is-dom')
 
isDom(window.document)
// => true

License

MIT

/is-dom/

    Package Sidebar

    Install

    npm i is-dom

    Weekly Downloads

    1,675,023

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    4.22 kB

    Total Files

    6

    Last publish

    Collaborators

    • yoshuawuyts