devela::_dep::js_sys::Reflect

Function prevent_extensions

Source
pub fn prevent_extensions(target: &Object) -> Result<bool, JsValue> 
Available on crate feature dep_js_sys only.
Expand description

The static Reflect.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). It is similar to Object.preventExtensions(), but with some differences.

MDN documentation