title: Javascript - Array with Boolean Keys?
body: <p>I'm relatively new to Javascript, and there's probably just a trick I'm not familiar with, but how can I assign boolean values to Array keys?</p>
  
  <p>What's happening:</p>
  
  <pre><code>var test = new Array();
  test[false] = "asdf";
  test['false'] = "fdsa";
  
  Object.keys(test); // Yield [ "false" ]
  Object.keys(test).length; // Yield 1
  </code></pre>
  
  <p>What I want to happen:</p>
  
  <pre><code>var test = new Array();
  
  //Some stuff
  
  Object.keys(test); // Yield [ "false" , false ]
  Object.keys(test).length; // Yield 2
  </code></pre>