title: function that takes a hierarchical map of properties and converts it to a single in javascript
body: <p>I have a function has just one variable(foo) and that is:</p>
  
  <pre><code>{
    'a': {
      'b': {
        'c': 12,
        'd': 'Hello World'
      },
      'e': [1,2,3]
    }
  }
  </code></pre>
  
  <p>and now I need to convert that to this:</p>
  
  <pre><code>{
    'a/b/c': 12,
    'a/b/d': 'Hello World',
    'a/e': [1,2,3]
  }
  </code></pre>
  
  <p>Including all property types like functions, true or false, arrays, numbers, strings and so on.</p>
  
  <p><strong>NOTE: Please do not write the code snippet that achieves this and don't give it to me. Just give me a few tips on what I should use and what the algorithm is. Then, if I am not able to write the code, I will tell you to give me the code.</strong></p>
  
  <p>Thanks</p>