js proxy is *perfect* for logging and debugging! You can trap every get/set call without modifying the original object.
Like, imagine tracking all state changes in a big app—proxy makes it trivial. Downsides? Yeah, it’s slower than direct access, but unless you’re building a AAA game, who cares?
Like, imagine tracking all state changes in a big app—proxy makes it trivial. Downsides? Yeah, it’s slower than direct access, but unless you’re building a AAA game, who cares?
