title: Javascript HashTable use Object key
body: <p>I want to create a hash table with <code>Object</code> keys that are not converted into String.</p>
  <p>Some thing like this:</p>
  <pre><code>var object1 = new Object();
  var object2 = new Object();
  
  var myHash = new HashTable();
  
  myHash.put(object1, &quot;value1&quot;);
  myHash.put(object2, &quot;value2&quot;);
  
  alert(myHash.get(object1), myHash.get(object2)); // I wish that it will print value1 value2
  </code></pre>
  <p><strong>EDIT:</strong> See <a href="https://stackoverflow.com/a/10908885/1129332">my answer</a> for full solution</p>