title: does javascript equality for 2.0 === 2 - hold true for all browsers
body: <p>I want to write a function to trim additional decimal 0's from floating point numbers like 2.0,  5.00 but not 3.04.</p>
  <p>so I wrote this:</p>
  <pre><code>const trimZeroFromDecimal = value =&gt;
    parseInt(value) === value ? parseInt(value) : value;
  </code></pre>
  <p>but will this equality between 2.0 and 2 hold true in all javascript environments - or are there any quirks to it?</p>
  <p>Thanks for your help</p>