Detect object changes with JavaScript Proxy
Let's say we have an object for our users. How can we detect when a property changes?
const user = {
firstName: 'Chris',
lastName: 'Bongers',
age: 10,
};
Now the user changes his age by using the following code.
user.age = 33;
However, we wan...
h.daily-dev-tips.com3 min read