js_sys::Reflect

Function delete_property

Source
pub fn delete_property(target: &Object, key: &JsValue) -> Result<bool, JsValue>
Expand description

The static Reflect.deleteProperty() method allows to delete properties. It is like the delete operator as a function.

MDN documentation