Answers for "check if variable is a number"

4

javascript check if variable is number

function isNumber(n) {
  return !isNaN(parseFloat(n)) && !isNaN(n - 0);
}
Posted by: Guest on May-22-2020

Code answers related to "check if variable is a number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language