Compare two numbers in Javascript disregarding sign
<pre><code>if (Entry.val == data.maxPointVal)
</code></pre>

<p>So, <code>data.maxPointVal</code> is an absolute value, so it's never going to be negative, however every single <code>Entry.val</code> that isn't zero, in this case will be negative.</p>

<p>How do I found out if the absolute values are the same in javascript, instead of doing the compare I am doing above?</p>
