Re:Proxy, a new JavaScript ES6 feature
by m_ke on Friday May 18, 2018 @08:15AM
(#17100773)
It's a feature you'll probably end up using all the time without even noticing it.
I just wrote a class to keep track of changes to an object using proxies yesterday. That way you can pass an object to a form, modify it in place and then roll back if needed. Also makes it easy to get deltas and only post the updates to the backend.
I just wrote a class to keep track of changes to an object using proxies yesterday. That way you can pass an object to a form, modify it in place and then roll back if needed. Also makes it easy to get deltas and only post the updates to the backend.