https://github.com/npm-dom/is-dom
Check if the given object is a dom node
https://github.com/npm-dom/is-dom
Last synced: about 1 month ago
JSON representation
Check if the given object is a dom node
- Host: GitHub
- URL: https://github.com/npm-dom/is-dom
- Owner: npm-dom
- License: mit
- Created: 2014-10-05T00:16:14.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T19:43:34.000Z (about 6 years ago)
- Last Synced: 2025-11-09T08:24:09.989Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://npm.im/is-dom
- Size: 19.5 KB
- Stars: 31
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome_frontend_development_resources - is-dom - Check if the given object is a dom node. (DOM / React Components)
- awesome - is-dom - Check if the given object is a dom node. (DOM / React Components)
README
# is-dom
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][downloads-url]
Check if the given object is a dom node.
## Installation
```sh
$ npm install is-dom
```
## Usage
```js
var isDom = require('is-dom')
isDom(window.document)
// => true
```
## License
[MIT](https://tldrlegal.com/license/mit-license)
[npm-image]: https://img.shields.io/npm/v/is-dom.svg?style=flat-square
[npm-url]: https://npmjs.org/package/is-dom
[travis-image]: https://img.shields.io/travis/npm-dom/is-dom.svg?style=flat-square
[travis-url]: https://travis-ci.org/npm-dom/is-dom
[coveralls-image]: https://img.shields.io/coveralls/npm-dom/is-dom.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/npm-dom/is-dom?branch=master
[downloads-image]: http://img.shields.io/npm/dm/is-dom.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/is-dom