class A {} class B extends A {} var b = new B(); (b instanceof B) && (b instanceof A)