title: How to safely traverse an object's key and print all value by the key in typescript?
body: <p>I am learning typescript and I am trying to define a function to traverse an object's value, but when I do like this, the <code>tslint</code> tells me:</p>
  
  <pre><code>Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. No index signature with a parameter of type 'string' was found on type '{}'.ts(7053)
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>function proxyData(data: object) {
    Object.keys(data).forEach((key: string) =&gt; {
      console.log(data[key]);
    });
  }
  </code></pre>