The handler.deleteProperty() method used to remove the property entirely using the delete operator. This method returns true if the delete was successful.
Target: The target object.
Property: The name of the property to delete.
This method returns a Boolean value. It indicates that property successfully deletes or not.
Example 1Test it Now
Example 2Test it Now
In delete Property undefined
Example 3Test it Now
true false true