javascript not instanceof code example
Example 1: js not instanceof
if ( !(obj instanceof Array) ) {
console.log('obj is not an Array')
}
Example 2: js class check if new instance
new Date() instanceof Date; // => true
if ( !(obj instanceof Array) ) {
console.log('obj is not an Array')
}
new Date() instanceof Date; // => true