typescript not instanceof code example Example: js not instanceof if ( !(obj instanceof Array) ) { console.log('obj is not an Array') }