javascript and test for number
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/175739/is-there-a-built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number">Is there a (built-in) way in JavaScript to check if a string is a valid number?</a>  </p>
</blockquote>



<p>I am using JS in a riak map reduce job.   I have a number I want to map and needs to be a number.</p>

<p>if I have a variable:</p>

<pre><code> var wp=sfggz5341&amp;&amp; or var=100
</code></pre>

<p>How can if test if number?</p>

<p>e.g.</p>

<pre><code>if wp==Number:    
    OK 
else:    
    pass
</code></pre>
