Function js_sys::Reflect::define_property [−][src]
pub fn define_property(
target: &Object,
property_key: &JsValue,
attributes: &Object
) -> Result<bool, JsValue>
The static Reflect.defineProperty()
method is like
Object.defineProperty()
but returns a Boolean
.