devela::_dep::js_sys::Reflect

Function set_with_receiver

Source
pub fn set_with_receiver(
    target: &JsValue,
    property_key: &JsValue,
    value: &JsValue,
    receiver: &JsValue,
) -> Result<bool, JsValue> 
Available on crate feature dep_js_sys only.
Expand description

The static Reflect.set() method works like setting a property on an object.

MDN documentation