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>
Expand description

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

MDN documentation