js_sys::Reflect

Function set

source
pub fn set(
    target: &JsValue,
    property_key: &JsValue,
    value: &JsValue,
) -> Result<bool, JsValue>
Expand description

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

MDN documentation