Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xotic750/is-node-x
Tests if a value is a DOM Node.
https://github.com/xotic750/is-node-x
browser dom javascript node nodejs
Last synced: 18 days ago
JSON representation
Tests if a value is a DOM Node.
- Host: GitHub
- URL: https://github.com/xotic750/is-node-x
- Owner: Xotic750
- License: mit
- Created: 2017-07-28T19:28:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T10:08:02.000Z (over 1 year ago)
- Last Synced: 2025-01-18T00:52:03.207Z (18 days ago)
- Topics: browser, dom, javascript, node, nodejs
- Language: JavaScript
- Size: 2.04 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## is-node-x
Tests if a value is a DOM Node.
### `module.exports(value)` ⇒
boolean
⏏
This method tests if `value` is a DOM Node.**Kind**: Exported function
**Returns**:boolean
- True if a DOM Node, otherwise false.| Param | Type | Description |
| --- | --- | --- |
| value |\*
| The value to test. |**Example**
```js
import isNode from 'is-node-x';console.log(isNode()); // => false
console.logisNode({ nodeType: 1 })); // => false
console.logisNode(document)); // => true
console.logisNode(document.createNode('div')); // => true
```