typescript check if property is not of type code example Example: check if js property exists in class myObj.hasOwnProperty(myProp)