Hacker News new | ask | show | jobs
by Offler 4215 days ago
Getters have been in JS since ES5 and can do what you just wrote. Obv Proxy is more powerful/has more traps.
1 comments

Not completely: with getters, you have to decide on a specific set of properties, the proxy GET trap intercepts all get operations. But I agree that you don’t always need proxies.