You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entries/jQuery.isNumeric.xml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@
9
9
</argument>
10
10
</signature>
11
11
<longdesc>
12
-
<p>The <code>$.isNumeric()</code> method checks whether a value is a finite number, or would be cast to one by <code>Number</code>. If so, it returns <code>true</code>. Otherwise it returns <code>false</code>. The argument can be of any type.</p>
12
+
<p>The <code>$.isNumeric()</code> method checks whether its argument represents a numeric value. If so, it returns <code>true</code>. Otherwise it returns <code>false</code>. The argument can be of any type.</p>
13
+
<p>As of jQuery 3.0 <code>$.isNumeric()</code> returns <code>true</code> only if the argument is of type <ahref="/Types/#Number"><code>number</code></a>, or if it's of type <code>string</code> and it can be coerced into finite numbers. In all other cases, it returns <code>false</code>.</p>
13
14
</longdesc>
14
15
<example>
15
16
<desc>Sample return values of $.isNumeric with various inputs.</desc>
0 commit comments