Function js_sys::Reflect::define_property
source ยท pub fn define_property(
target: &Object,
property_key: &JsValue,
attributes: &Object,
) -> Result<bool, JsValue>
Expand description
The static Reflect.defineProperty()
method is like
Object.defineProperty()
but returns a Boolean
.