title: How do I iterate over a Map<string, string>?
body: <p>I have an object of type: <code>Map&lt;string, string&gt;</code>:</p>
  
  <pre><code>const foo = new Map&lt;string, string&gt;();
  
  // e.g. foo is one =&gt; "1", two =&gt; "2", three =&gt; "3" etc.
  </code></pre>
  
  <p>I know I can get all the keys using:</p>
  
  <pre><code>const keys = Object.keys(foo);
  </code></pre>
  
  <p>But when I try to get each corresponding value using:</p>
  
  <pre><code>keys.forEach(k =&gt; {const val = foo[k]});
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>type Map&lt;string, string&gt; has no index signature.
  </code></pre>
  
  <p>I need to be able to iterate through each key val. Any idea?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>I have to say that I am casting the result of a <code>json</code> received via an ajax call to a type of <code>Map&lt;string, string&gt;</code> e.g. given the following json returned by an api call:</p>
  
  <pre><code>{
      one: "1",
      two: "2",
      three: "3"
  }
  </code></pre>
  
  <p>I am then doing the following:</p>
  
  <pre><code>const response = await this.axios.get&lt;Map&lt;string, string&gt;&gt;("some/api");
  const foo = response.data;
  </code></pre>