code: function validateElement(obj) {
          return typeof HTMLElement === 'object' ?
            obj instanceof window.HTMLElement :
            obj &&
            typeof obj === 'object' &&
            obj !== null &&
            obj.nodeType === 1 &&
            typeof obj.nodeName === 'string';
        }
docs: @function validateElement
  Validates if passed argument is valid DOM element
  
  @param {object} obj
  @returns HTMLElement