Open holl0wstar opened 5 years ago
I'm testing this soon, but two pieces of feedback:
a) If for some reason, value
is an object/array or other non-primitive data type, it could be exactly the same and still emit the event. This is probably okay but something to note in the docs.
b) I'd consider moving the check to be before base[property] = value
because if it is exactly the same, why reassign it? Very minor optimization though, to be honest.
As discussed on Slack, I forgot to implement this initially.