Javascript check item type code example
Example 1: javascript detect if object is date
var myDate=new Date();
if(myDate instanceof Date){
//im a hot Date
}
Example 2: check data type in javascript
typeof("string"); //string
typeof(123); //number