src code

class method Object.isElement

Object.isElement(object) → Boolean
  • object (Object) – The object to test.

Returns true if object 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