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