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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #number
ADD COMMENT
Topic
Name
6+3 =