Function js_sys::Reflect::prevent_extensions
source · pub fn prevent_extensions(target: &Object) -> Result<bool, JsValue>
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.