Differentiating +0 and -0
<p>It turns out <code>+0 === -0</code> evaluates to <code>true</code> despite <code>+0</code> and <code>-0</code> being <em>different</em> entities. This begs the question, how do you differentiate <code>+0</code> and <code>-0</code> within JavaScript?</p>

<p>There is a trick that works:</p>

<pre><code>if (1 / myZero &gt; 0) {
   // The case myZero is +0
} else {
   // The case myZero is -0
}
</code></pre>

<p>This feels like a hack. Is there a better approach?</p>
