dist/hello.all.js
function(type, data) {
		var test = 'HTML' + (type || '').replace(
			/^[a-z]/,
			function(m) {
				return m.toUpperCase();
			}

		) + 'Element';

		if (!data) {
			return false;
		}

		if (window[test]) {
			return data instanceof window[test];
		}
		else if (window.Element) {
			return data instanceof window.Element && (!type || (data.tagName && data.tagName.toLowerCase() === type));
		}
		else {
			return (!(data instanceof Object || data instanceof Array || data instanceof String || data instanceof Number) && data.tagName && data.tagName.toLowerCase() === type);
		}
	}
function(type, data) {
		var test = 'HTML' + (type || '').replace(
			/^[a-z]/,
			function(m) {
				return m.toUpperCase();
			}

		) + 'Element';

		if (!data) {
			return false;
		}

		if (window[test]) {
			return data instanceof window[test];
		}
		else if (window.Element) {
			return data instanceof window.Element && (!type || (data.tagName && data.tagName.toLowerCase() === type));
		}
		else {
			return (!(data instanceof Object || data instanceof Array || data instanceof String || data instanceof Number) && data.tagName && data.tagName.toLowerCase() === type);
		}
	}
function ( type , data ) { var test = 'HTML' + ( type || '' ) . replace ( / ^[a-z] / , function ( m ) { return m . toUpperCase ( ) ; } ) + 'Element' ; if ( ! data ) { return false ; } if ( window [ test ] ) { return data instanceof window [ test ] ; } else if ( window . Element ) { return data instanceof window . Element && ( ! type || ( data . tagName && data . tagName . toLowerCase ( ) === type ) ) ; } else { return ( ! ( data instanceof Object || data instanceof Array || data instanceof String || data instanceof Number ) && data . tagName && data . tagName . toLowerCase ( ) === type ) ; } }
Return the type of DOM object
Return the type of DOM object