title: Looping through a recursive array
body: <p><br>
  I've got a recursive array. So the array below can go deeper and deeper.</p>
  
  <pre><code>0: "1"
  1: [
      0: "2"
      1: [
          0: "3"
      ]
      2: [
          0: "4"
          1: [
              0: "5"
          ]
      ]
  ]
  </code></pre>
  
  <p>I want the output to be the path of all the values. So 123 and 1245.</p>
  
  <p>How can this be done in a Javascript method?</p>