Skip to content

Commit 4e65b6d

Browse files
committed
isNumeric: Updated description based on new behavior
Fixes gh-817 Closes gh-819
1 parent d0e7282 commit 4e65b6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

entries/jQuery.isNumeric.xml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
</signature>
1111
<longdesc>
1212
<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)