title: Nested dictionary to list of strings - typeScript
body: <p>I have a nested dictionary which I want to convert to a list of strings.
  e.g.
  I have this input:</p>
  
  <pre><code>var group = {
      '5': {
          '1': {
              '1': [1,2,3],
              '2': [1]
          },
          '2':{
              '1': [2,4],
              '2': [1]
          }
      },
      '1': {
          '1':{
              '1':[1,2,5],
              '2':[1]
          },
          '2':{
              '1':[2,3]
          }
      }
  };
  </code></pre>
  
  <p>I want this output:</p>
  
  <pre><code>a = ["5.1.1.1","5.1.1.2","5.1.1.3"..... "1.2.1.3"]
  </code></pre>
  
  <p>I started with this recursive function:</p>
  
  <pre><code>function printValues(obj) {
      for (var key in obj) {
      console.log(key)
          if (typeof obj[key] === "object") {
              printValues(obj[key]);   
          } else {
              console.log(obj[key]);    
          }
      }
  }
  </code></pre>
  
  <p>But t doesn't work yet..</p>