Creates a Stealth Proxy pattern to allow for on-demand lazy property discovery and registration. Provides deep-freezing and bounding capabilities depending on options.
The object to proxify
Whether the proxy should throw on mutation (default: true)
Whether to deep-freeze the underlying target (default: frozen)
A WeakSet of objects to skip during deep-freeze
The proxified object
const p = proxify({ a: 1 }); Copy
const p = proxify({ a: 1 });
Creates a Stealth Proxy pattern to allow for on-demand lazy property discovery and registration. Provides deep-freezing and bounding capabilities depending on options.