How to create an observable stream of custom objects using RxJS operators
<p>I currently have input which looks as follows</p>

<pre><code>const config = {
  'mainA': { sub1: { name: 'test1'}, sub2: { name: 'test2'}},
  'mainB': { sub1: { name: 'test3'}, sub2: { name: 'test4'}}
};
</code></pre>

<p>I'm trying to write a function (createCustomObservable) which would create an observable using standard RsJS operators as follows</p>

<pre><code>var observable = createCustomObservable(config);
observable.subscribe((x) =&gt; console.log(x));
</code></pre>

<p>The console output should read as follows</p>

<pre><code>{'mainA': 'test1'} -&gt; {'mainA': 'test2'} -&gt; {'mainB': 'test3'} -&gt;  {'mainB': 'test4'} 
</code></pre>

<p>A series of objects with a single propery</p>

<p>Does anyone have any idea how to realise this using RxJS operators? Any help would be appreciated.</p>