javascript parseInt return NaN for empty string
<p>Is it possible somehow to return 0 instead of NaN when parsing values in javascript?</p>

<p>Because in case of if parsed string is empty <code>parseInt</code> returns NaN.</p>

<p>Is it possible to do something like that in JavaScript to check for NaN </p>

<pre><code> var value = parseInt(tbb) == NaN ? 0 : parseInt(tbb)
</code></pre>

<p>Or may be there is some another functions or jQuery plugin which may do something similar?</p>
