| EMS.Util.typeOf = function( | obj | ) |
|
Parameters
| obj | {Object} is the object to test. |
Example
var string = "hello";
EMS.Util.typeOf(string); // Returns "string"
Returns
{String} The string name of the of the type. It will return false if null or undefined. The following results will be returned:
- element if the object is a DOM element.
- textnode if the object is a DOM text node.
- whitespace if the object is a DOM whitespace node.
- array if the object is an {Array}.
- object if the object is an {Object}.
- string if the object is a {String}.
- number if the object is a {Number}.
- boolean if the object is a {Boolean}.
- function if the object is a {Function}.