title: Unable to retrieve map of key value pairs as value in map
body: <p>I am struggling with a simple problem(I think).
  The issue is this.</p>
  
  <pre><code>this.keyss = new Map();
  this.summonerHistoryService.getimage().subscribe(champsinfo =&gt; {
      for(let c of Object.values(champsinfo.data))
      {
          let values = new Map();
          values.set("frequency", 0);
          values.set("name", c.name);
          values.set("image", c.image.full);
          this.keyss.set(c.key, values);
      }
      let champnum = (103).toString();
      this.keyss.set(champnum, (this.keyss.get(champnum)).get("frequency") + 1);
      console.log((this.keyss.get(champnum)).get("frequency"));
      console.log((this.keyss.get(champnum)).get("name"));
      console.log((this.keyss.get(champnum)).get("image"));
  });
  </code></pre>
  
  <p>I wanted to see if "frequency" value has been changed but error occurs at first <code>console.log((this.keyss.get(champnum)).get("frequency"));</code>:</p>
  
  <pre><code>ERROR TypeError: _this.keyss.get(...).get is not a function
  at SafeSubscriber._next (champion-stats.component.ts:48)
  at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:195)
  at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next (Subscriber.js:133)
  at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next (Subscriber.js:77)
  at Subscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
  at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (map.js:41)
  at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
  at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (map.js:41)
  at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54)
  at FilterSubscriber.push../node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next (filter.js:38)
  </code></pre>
  
  <p>I checked that saving values from champinfo.data to this.keyss in for(let..of) worked well like this</p>
  
  <pre><code>Map(141) {"266" =&gt; Map(3), "103" =&gt; Map(3), "84" =&gt; Map(3), "12" =&gt; Map(3), "32" =&gt; Map(3), …}
  size : (...)  
   __proto__ : Map
    [[Entries]] : Array(141)
     [0 … 99]
      0 : {"266" =&gt; Map(3)}
       key : "266"
       value : Map(3)
       size : (...)
       __proto__ : Map
       [[Entries]] : Array(3)
        0 : {"frequency" =&gt; 0}
        1 : {"name" =&gt; "Aatrox"}
        2 : {"image" =&gt; "Aatrox.png"}
        length : 3
  1 : {"103" =&gt; Map(3)}
  2 : {"84" =&gt; Map(3)}
  </code></pre>
  
  <p>I don't understand why I am getting this error.
  Thanks for your help</p>