title: Is it okay to use floating point numbers as keys in objects?
body: <p>Is it ok to use float numbers as keys in javascript objects? Woudn't be there potential problems with such objects?</p>
  
  <p>Consider the below code:</p>
  
  <pre><code>var obj = {};
  obj[1.2345]   = 10;
  obj[10000]    = 10;
  obj[10000.23] = 10;
  </code></pre>