title: Treat argument of the function as a name of array
body: <p>I have small problem. I have script that has many arrays.
  My previous function returns a "chosen" variable which is a parameter of my <code>setBreakValues</code> function it's also the name of array i want to access values of in my function. Lets say i get "test" return from my other function and pass it into <code>setBreakValues</code> i want to access <code>test[0]</code> element in test array but it returns the first letter of parameter. I just simply want to use it as a name of array. Is that possible?</p>
  
  <p>Here is the broken code:</p>
  
  <pre><code>function setBreakValues(chosen){
      console.log(chosen[0][1])
      $("#totalTime").val($("#firstTime").val())
      var select = document.getElementById('breakValue');
      for(var i = 0; i &lt; chosen.length; i++) {
          var option = document.createElement('option');
          option.innerHTML = chosen[i][0];
          option.value = chosen[i][0];
          select.appendChild(option);
      }
      $("#breakValue").change(function(){
          $("#secondPressure").val(chosen[0][1])
      })
  }
  </code></pre>