nodejs check if object attribute is set code example Example: check if js property exists in class myObj.hasOwnProperty(myProp)