JavaScript Built In Operator TypeOf
View Source...
This is an operator but its usefullness is similar to a function. This operator returns the type of the object it operates on. Values returned are, depending on the test, string values and may be one of "undefined", "object", "function", "number", "Boolean", or "string".