String alpha validator - Node.js String

Node.js examples for String:Parse

Description

String alpha validator

Demo Code


  isAlpha: function(data){
    if(!/[^a-zA-Z]/.test(data)){
      return true 
    }else{/*from   w  w w  .  j ava2  s  .  com*/
      return false;
    }
  },

Related Tutorials