Is input number - Node.js Regular expression

Node.js examples for Regular expression:Validation

Description

Is input number

Demo Code

  isNumber: function(data){
    if(typeof data === "number"){
      return true;
    }else{/*from w w  w . ja va  2  s .  c om*/
      return false;
    }
  },

Related Tutorials