JavaScript deleteProperty() method

The Javascript handler deleteProperty() method removes a property entirely from the target object.


deleteProperty: function(target, property)

Parameters: target: It represents the target object. property: It represents the property to be deleted.

Return: Returns true if the specified property is deleted successfully otherwise returns false.


<!DOCTYPE html>
var handler = new Proxy({},
deleteProperty: function(x,y)
return true;
delete handler.deleted_property;
Please follow and like us:
Content Protection by