Creates a dynamic Proxy where property access is forwarded to a discovery callback. Useful for virtual objects and lazy-loading data.
The base object
Callback fired when an unknown property is accessed
Whether the proxy should prevent mutations (default: true)
The delegated Proxy
const d = delegate({}, (key) => console.log('Requested:', key)); Copy
const d = delegate({}, (key) => console.log('Requested:', key));
Creates a dynamic Proxy where property access is forwarded to a discovery callback. Useful for virtual objects and lazy-loading data.