title: Is there a way in JavaScript to get a list of all the local variables currently defined?
body: <p>Say I have a function:</p>
  
  <pre><code>function() {
    var a = 12;
    var b = 15;
    var c = list_of_all_local_variables
  }
  </code></pre>
  
  <p>Is there a way in JavaScript to get a list of all the variables in the current scope, so list_of_all_local_variables would contain something like {a:12, b:13}, or even just ['a','b']</p>
  
  <p>Thanks!</p>