title: Checking if an object is null or undefined in angular 2
body: <p>I have 2 object, one takes person details and other one takes address details via form. And each object has 3 fields. Now, before I send this to my parent, I need an check if condition these 2 objects are not undefined or null</p>
  
  <p>I have tried these conditions and all fail:</p>
  
  <p>=> <code>!(this.person)&amp;&amp;!(this.address)</code></p>
  
  <p>=> <code>this.person !=(null || undefined)</code></p>
  
  <p>I know that I can also compare each property of the object to null or undefined but can't write 6 conditions, because it breaches coding standards.</p>
  
  <p>So guys please help me with this </p>