title: Get only values from a map (which has values as array) to an array typescript
body: <p>I want to get values of a map (which has values as array) and store inside a string array in typescript.</p>
  <pre><code>myMap = {0:['a','b','c'], 1:['d','e'], 2:['f','g']};
  </code></pre>
  <p>Expected Result <code>arr['a','b','c','d','e','f','g']</code></p>
  <p>Updated: I haven't used flat() function before. Without flat() function it gives below result.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>myMap = { 0: ["a", "b", "c"], 1: ["d", "e"], 2: ["f", "g"] };
  
  const result = Object.values(myMap);
  console.log(result);</code></pre>
  </div>
  </div>
  </p>