jsonml-html.js
function getType(val) {
		switch (typeof val) {
			case 'object':
				return !val ? NUL : (isArray(val) ? ARY : (isMarkup(val) ? RAW : ((val instanceof Date) ? VAL : OBJ)));
			case 'function':
				return FUN;
			case 'undefined':
				return NUL;
			default:
				return VAL;
		}
	}
function getType(val) {
		switch (typeof val) {
			case 'object':
				return !val ? NUL : (isArray(val) ? ARY : (isMarkup(val) ? RAW : ((val instanceof Date) ? VAL : OBJ)));
			case 'function':
				return FUN;
			case 'undefined':
				return NUL;
			default:
				return VAL;
		}
	}
function getType ( val ) { switch ( typeof val ) { case 'object' : return ! val ? NUL : ( isArray ( val ) ? ARY : ( isMarkup ( val ) ? RAW : ( ( val instanceof Date ) ? VAL : OBJ ) ) ) ; case 'function' : return FUN ; case 'undefined' : return NUL ; default : return VAL ; } }
Determines the type of the value

@private
@param {*} val the object being tested
@return {number}
Determines the type of the value