isElement
1.6

isElement(obj) -> Boolean

Returns true if obj is a DOM node of type 1, false otherwise.

Examples


Object.isElement(new Element('div'));
//-> true

Object.isElement(document.createElement('div'));
//-> true

Object.isElement($('id_of_an_exiting_element'));
//-> true

Object.isElement(document.createTextNode('foo'));
//-> false