title: Differences between and when to use Map vs Record
body: <p>I am trying to map some Java code which uses Map's to Typescript code.
  My initial thought was to use Map's in Typescript but for the interface I was creating this did not work out. Instead I found Records which seemed to emulate Java's Map's perfectly.</p>
  
  <p>My main question is when should I use Typescript's Maps over Records and when should I use Typescripts Records over Maps?</p>
  
  <p>How do they work differently?</p>
  
  <pre><code>viewMappings: Record&lt;string, String[]&gt;;
  viewMappings: Map&lt;String, String[]&gt;;
  </code></pre>
  
  <p>for example</p>
  
  <p>I expect these to work in an interface with my State very similarly but they do not and am looking for documentation of the differences of the two.</p>