title: How to turn NaN from parseInt into 0 for an empty string?
body: <p>Is it possible somehow to return 0 instead of <code>NaN</code> when parsing values in JavaScript?</p>
  
  <p>In case of the empty string <code>parseInt</code> returns <code>NaN</code>.</p>
  
  <p>Is it possible to do something like that in JavaScript to check for <code>NaN</code>?</p>
  
  <pre><code>var value = parseInt(tbb) == NaN ? 0 : parseInt(tbb)
  </code></pre>
  
  <p>Or maybe there is another function or jQuery plugin which may do something similar?</p>