@hyperfrontend/immutable-api-utils/built-in-copy/reflectreflect
Locked, prototype-pollution-resistant copies of the global Reflect methods.
References to Reflect.apply, Reflect.construct, Reflect.get, Reflect.set, Reflect.has, Reflect.ownKeys, and the rest of the Reflect API are captured at module-load time and frozen into a tamper-proof namespace, so meta-programming stays trustworthy even if the global Reflect is later patched. Effective only when imported before any untrusted code has had a chance to mutate the prototype chain.
API Reference
● Variables
(Safe copy) Calls the function with the specified object as the this value and the elements of specified array as the arguments.
(Safe copy) Constructs the target with the elements of specified array as the arguments.
(Safe copy) Adds or modifies a property on an object.
(Safe copy) Deletes a property from an object.
(Safe copy) Gets the property of target, equivalent to target[propertyKey].
(Safe copy) Gets the property descriptor of the specified property.
(Safe copy) Returns the prototype of the specified object.
(Safe copy) Determines whether an object has a property with the specified name.
(Safe copy) Returns a boolean indicating whether the object is extensible.
(Safe copy) Returns an array of the target object's own property keys.
(Safe copy) Prevents new properties from being added to the object.
(Safe copy) Namespace object containing all Reflect methods. Note: Importing this imports all methods in this namespace (no tree-shaking).
(Safe copy) Sets the property of target, equivalent to target[propertyKey] = value.
(Safe copy) Sets the prototype of the specified object.