I\'m trying to get:
document.createElement(\'div\') //=> true {tagName: \'foobar something\'} //=> false
In my own scripts, I used
Test if obj inherits from Node.
obj
if (obj instanceof Node){ // obj is a DOM Object }
Node is a basic Interface from which HTMLElement and Text inherit.