is-dom

Check if the given object is a dom node

MIT 10 个版本
安装
npm install is-dom
yarn add is-dom
pnpm add is-dom
bun add is-dom
README

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

版本列表
1.1.0 2019-06-21
1.0.9 2017-02-13
1.0.7 2017-01-04
1.0.6 2017-01-04
1.0.5 2015-02-19
1.0.4 2014-10-12
1.0.3 2014-10-12
1.0.2 2014-10-05
1.0.1 2014-10-05
1.0.0 2014-10-05