Skip to main content

set_str

Function set_str 

Source
pub fn set_str<T>(
    target: &Object<T>,
    property_key: &JsString,
    value: &T,
) -> Result<bool, JsValue>
where Object<T>: ErasableGenericBorrow<Object<JsValue>>, T: ErasableGenericBorrow<JsValue>,
Expand description

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

MDN documentation