Javascript how to check an object with the same attributes exist code example Example: check if js property exists in class myObj.hasOwnProperty(myProp)