Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
isNumeric: Updated description based on new behavior
Fixes gh-817
  • Loading branch information
AurelioDeRosa committed Oct 18, 2015
commit 88e67c731e5b08ab28fb36e19d8480f3ac18a497
1 change: 1 addition & 0 deletions entries/jQuery.isNumeric.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</signature>
<longdesc>
<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>
<p>As of jQuery 3.0 <code>$.isNumeric()</code> returns <code>true</code> only if the argument is of type <code>number</code>, 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>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe link to the types page to avoid confusion (http://api.jquery.com/Types/#Number)

</longdesc>
<example>
<desc>Sample return values of $.isNumeric with various inputs.</desc>
Expand Down