author avatar

harshwardhan

Wed Dec 27 2017

in es6 you can now proxy your object's operation like get, set etc. All you need to do it create a proxy on a object like const proxyObj = new Proxy(initialObj, handler) the initial object is the object that you want to create proxy for and handler object is the place where you override object's method like get and set.