title: Object length in typescript?
body: <p>is there any way in typescript by which I can get length of an object:</p>
  
  <p>Something like this:</p>
  
  <p>say I have an object:</p>
  
  <pre><code>public customer:any={
       "name":"Bhushan",
       "eid":"879546",
       "dept":"IT"
  }
  </code></pre>
  
  <p>Now I am trying to get its length in typescript. </p>
  
  <p>ie. when I am doing <code>customer.length()</code>, I should be able to get value 3 as it has 3 elements.</p>
  
  <p>I tried <code>Object.getOwnPropertyNames(customer.value)</code> but its returning 2 whereas I have 3 elements in my object.</p>
  
  <p>any inputs?</p>