I have an object, which I modify on a regular basis. As data is discovered and discarded, I add items to and delete items from the nested arrays.
let obj = {
image: [],
video: []
}
I am wondering if there is anything like MutationObserver
that is instead capable of monitoring changes to objects?
If not, is there a way to monitor an object for changes without manually polling it constantly?