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