MaxArt2501 / object-observe

Object.observe polyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Observe object recursive

mateusmirandaalmeida opened this issue · comments

Example:

`var data = {
people: [
{
name: 'Mateus'
}
]
};

Object.observe(data, changes => { console.log(changes) });

data.people[0].name = 'Mateus Miranda';
`

Object.observe doesn't (didn't, actually) work this way, sorry.