title: Is there any convention regarding how to represent a Map?
body: <p>I understand that <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map" rel="nofollow noreferrer">Map</a> (and <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set" rel="nofollow noreferrer">Set</a>) doesn't have a literal notation, that's not my question. My question is, <em>precisely because</em> it doesn't have a literal notation, how do I write it down?</p>
  
  <p>For instance, if I had this object:</p>
  
  <pre><code>+-----+-------------+
  | key |    value    |
  +-----+-------------+
  | foo | 42          |
  | bar | hello world |
  +-----+-------------+
  </code></pre>
  
  <p>I'd write it down as:</p>
  
  <pre><code>obj = {
      foo: 42,
      bar: "hello world"
  }
  </code></pre>
  
  <p>But if I had the same thing as a Map...</p>
  
  <pre><code>+-----+-------------+
  | key |    value    |
  +-----+-------------+
  | foo | 42          |
  | bar | hello world |
  +-----+-------------+
  </code></pre>
  
  <p>How would I write it down? Is there any accepted convention for representing a Map?</p>