converting an object into arrays in angular2 Typescript
<p>I have an object which is getting dynamically loaded from REST response. Now i have to convert this object into 2 arrays.
1) an array with key and values in which the value is null.
2) an array with key and values in which the value is not null.</p>

<p>And these both arrays, i need to display them in html with key and values in sorted order like. first the not null values and then later the null values.</p>

<pre><code>object1 : {
'name' : 'xyz',
'age' : '23',
'dob' : null,
'address' : null
}
</code></pre>

<p>Am finding a problem while converting this object into an array!
What i have been trying is</p>

<pre><code>this.notNullValues = new Array&lt;string&gt;();
for(let obj of this.object1){
console.log(obj);
}
</code></pre>