search json numbers
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric">Validate numbers in JavaScript - IsNumeric()</a>  </p>
</blockquote>



<p>I have the following (working) code that searches for the string "type 1" in my <code>Json</code>, but how can I search for a number? I am guessing that I need to change <code>RegExp</code> to Number, but I can't get it to work, it tells me that <code>v.properties.code</code> in not a function.</p>

<pre><code>$.each(geojson.features, function (i, v) {
    if (v.properties.code.search(new RegExp(/type 1/i)) != -1) {
         Count++;
    }
});
</code></pre>
