Why has Object.observe() been deprecated
<p>Is there an alternative approach?</p>

<p>Is there another way to do change detection in object? </p>

<p>There is the Proxy method, but can anyone tell me how can I achieve this using Proxy:</p>

<pre><code>var obj = {
  foo: 0,
  bar: 1
};

Object.observe(obj, function(changes) {
  console.log(changes);
});

obj.baz = 2;
// [{name: 'baz', object: &lt;obj&gt;, type: 'add'}]

obj.foo = 'hello';
// [{name: 'foo', object: &lt;obj&gt;, type: 'update', oldValue: 0}]
</code></pre>