<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 10:03:56 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) JavaScript isNumeric function - CommissarXiii</title>
      <link>https://snipplr.com/view/51708/javascript-isnumeric-function</link>
      <description>&lt;p&gt;The (input - 0) expression forces javascript to do type coercion on your input value; it must first be interpreted as a number for the boolean compare. If that conversion to a number fails, the expression will result in NaN. Then this numeric result is compared to the original value you passed in. Since the left hand side is a number, type coercion is again used. They should always be the same (always true), but there's a special rule that says NaN is never equal to NaN, and so a value that can't be converted to a number will always return false. The check on the length is of course for the empty string special case. In summary, if you want to know if a value can be converted to a number, actually try to convert it to a number.&lt;/p&gt;</description>
      <pubDate>Thu, 07 Apr 2011 08:30:18 UTC</pubDate>
      <guid>https://snipplr.com/view/51708/javascript-isnumeric-function</guid>
    </item>
  </channel>
</rss>
