is-dom-node
Installation
Browser
A simple and fast way to get started is to include this script on your page:
This will create the global variable isDomNode
.
Module
npm install is-dom-node
CommonJS
const isDomNode =
ES2015
Usage
const node = document// => true const html = '<div id="cake"></div>'// => false