instanceof javascript not code example
Example 1: js not instanceof
if ( !(obj instanceof Array) ) {
console.log('obj is not an Array')
}
Example 2: instanceof javascript
var color = "red";
var color2 = {};
color instanceof String // will return true
color2 instanceof Object // will return true