Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if number

function isNumber(value) {
  return !isNaN(value) && parseFloat(Number(value)) === value && !isNaN(parseInt(value, 10));
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #check #number
ADD COMMENT
Topic
Name
8+4 =