lib/polymorphic.js
function type(variable, explicit) {
		var result = typeof variable;

		switch (result) {
			case 'number':
				result = numberType(result, variable, explicit);
				break;

			case 'object':
				result = objectType(result, variable, explicit);
				break;

			case 'boolean':
				result = booleanType(result, explicit);
				break;

			case 'undefined':
				result = undefinedType(result, explicit);
				break;
		}

		return result;
	}
function type(variable, explicit) {
		var result = typeof variable;

		switch (result) {
			case 'number':
				result = numberType(result, variable, explicit);
				break;

			case 'object':
				result = objectType(result, variable, explicit);
				break;

			case 'boolean':
				result = booleanType(result, explicit);
				break;

			case 'undefined':
				result = undefinedType(result, explicit);
				break;
		}

		return result;
	}
function type ( variable , explicit ) { var result = typeof variable ; switch ( result ) { case 'number' : result = numberType ( result , variable , explicit ) ; break ; case 'object' : result = objectType ( result , variable , explicit ) ; break ; case 'boolean' : result = booleanType ( result , explicit ) ; break ; case 'undefined' : result = undefinedType ( result , explicit ) ; break ; } return result ; }
Determine the type and create a string ready for use in regular expressions
@name    type
@access  internal
@param   mixed   variable
@param   bool    explicit
@return  string  type
Determine the type and create a string ready for use in regular expressions