Skip to content

Commit 5854b44

Browse files
AurelioDeRosatimmywil
authored andcommitted
isNumeric: Updated description based on new behavior
Fixes jquerygh-817 Closes jquerygh-819
1 parent 025e1fc commit 5854b44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entries/jQuery.isNumeric.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
</argument>
1010
</signature>
1111
<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 <a href="/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>
1314
</longdesc>
1415
<example>
1516
<desc>Sample return values of $.isNumeric with various inputs.</desc>

0 commit comments

Comments
 (0)