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