Return to Snippet

Revision: 46083
at May 12, 2011 19:41 by mArm


Initial Code
function isNumeric(input) {
 return (input - 0) == input && input.length > 0;
}

Initial URL
http://www.ansermot.ch/devs/snippets/2011/javascript-test-if-variable-is-numeric.html

Initial Description
Works !

Initial Title
Test if variable is numeric

Initial Tags

                                

Initial Language
JavaScript