📘Proxy
JS ⟩ object ⟩ built-in ⟩ Proxy
A Proxy wraps another object/function and intercepts
property creation/access/enumeration/testing
method invocation
// ⭐️ proxy should shadow the original (target) object/function.
obj = new Proxy(obj, {
// handler methods
__proto__: null, // prevent from inheriting unnecessary methods.
});
a Proxy object doesn't have own properties.
Last updated
Was this helpful?