Javascript check item tipe 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 js
typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword