Convert NaN to 0 in javascript
<p>Is there a way to convert NaN values to 0 without an if statement:</p>

<pre><code>if (isNaN(a)) a = 0;
</code></pre>

<p>It is very annoying to check my variables every time.</p>
