instanceof javascript object code example
Example 1: javascript detect if object is date
var myDate=new Date();
if(myDate instanceof Date){
//im a hot Date
}
Example 2: js not instanceof
if ( !(obj instanceof Array) ) {
console.log('obj is not an Array')
}