An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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