title: How to separate key and value pair from an object in typescript
body: <p>I would like to seperate the key and value from an object in typescript for that i have used the following code which returns only values but keys are not displayed.</p>
  
  <pre><code>Object.keys(data).forEach(key=&gt; {
      console.log('keys', data[key]);     
  });
  </code></pre>
  
  <p>But when i use the below function in javascript it gives me the key and value correctly can anyone tell me how to do the same in typescript to get the key and values from an object.</p>
  
  <pre><code>angular.forEach(data, function (value, column) {
      columns.push(column);
      values.push(value);
    });
  </code></pre>