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