title: Javascript - How to get the size in bytes of a Map
body: <p>How can I get the size in bytes of the following Map?</p>
  <pre><code>const cache = new Map();
  cache.set(&quot;1&quot;, { id: &quot;1&quot; });
  </code></pre>