title: how could i make this function recursive and remove the for in loop here. where i get the result of Maark, Maary etc by using this function
body: <p>how could i make this function recursive and remove the for in loop here. 
  where i get the result of Maark, Maary etc by using this function.</p>
  
  <pre><code>function get_suggestion_array_from_object () {
      var test_searchstring = 'Ma';
      var test_current_object_string = '{"a":{"r":{"k":0,"y":0}, "s":{"s":0,"y":0}}}';
      var test_current_object = JSON.parse(test_current_object_string);
      var suggestion_array = [];
      for (var item in test_current_object) {
          var one = item;
          for( var item2 in test_current_object[item]) {
              var two =  item2;
              console.log( test_searchstring + one + two );
              }
          }
      }
  }
  
  get_suggestion_array_from_object ()
  </code></pre>