Skip to main content

delete_property

Function delete_property 

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

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

MDN documentation