I\'m trying to get:
document.createElement(\'div\') //=> true {tagName: \'foobar something\'} //=> false
In my own scripts, I used
No need for hacks, you can just ask if an element is an instance of the DOM Element:
const isDOM = el => el instanceof Element