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));
}
 
PREVIOUS NEXT
Tagged: #javascript #check #number
ADD COMMENT
Topic
Name
6+9 =