lib/chai/utils/inspect.js
function (object) {
  if (typeof HTMLElement === 'object') {
    return object instanceof HTMLElement;
  } else {
    return object &&
      typeof object === 'object' &&
      'nodeType' in object &&
      object.nodeType === 1 &&
      typeof object.nodeName === 'string';
  }
}
function (object) {
  if (typeof HTMLElement === 'object') {
    return object instanceof HTMLElement;
  } else {
    return object &&
      typeof object === 'object' &&
      'nodeType' in object &&
      object.nodeType === 1 &&
      typeof object.nodeName === 'string';
  }
}
function ( object ) { if ( typeof HTMLElement === 'object' ) { return object instanceof HTMLElement ; } else { return object && typeof object === 'object' && 'nodeType' in object && object . nodeType === 1 && typeof object . nodeName === 'string' ; } }
Returns true if object is a DOM element.
Returns true if object is a DOM element .