title: How to get length of TypeScript Map<k, v>?(Error: Map.size gives undefined)
body: <p><strong>I have Map in my angular component as key being object of class Group and value being an array of class Match which basically says group and matches that will take place among the group members of that group.
  .</strong></p>
  
  <p>Map&lt; Group, Match[]></p>
  
  <p>I want to have the total number of entries in the map and length of match array as well. How do I do that? </p>
  
  <p>I've tried map.size and map.values().next().length</p>